Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Batch statement execution - regarding

 
PNS Subramanian
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use Sybase Adaptive enterprise server.

Is there any limit on the number of sql queries that can be executed using a batch statement ? Would there be a performance hit if the number of queries exceeds a certain value ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by PNS Subramanian:
Is there any limit on the number of sql queries that can be executed using a batch statement ?

If there is, it is so high that you wouldn't hit it in practice.

Would there be a performance hit if the number of queries exceeds a certain value ?

Yes. We've experienced this on several servers. I think it has to do with memory. We had to experiment to see where the optimal number of queries was.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic