I just export all objects from a Cronus database (2009 R2) to txt and find out many FIND('-') on all the code.
If this kind of command creates a lot of cursor´s wich cause a lot of impact to SQL performance why Microsoft doesn´t do a full review and changes this kind of commands, or are they helpfull on some processes?. Can you help me?
Best Regards,
nav_student.
0
Comments
RIS Plus, LLC
So what kind of situations do you refer.
How to know what FIND is the best?
Probably it´s a basic question but i´m a rookie.
So they only do it if they happen to change/add code.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Don´t you agree?
Then someone comes in and sees that you did not do this one task and starts yelling at you "That only takes 10 minutes! That is just crazy that you did not do it!". Do you think that is reasonable?
RIS Plus, LLC
But a higher priority are the things that don't work and after all:slow performance does not mean that it doesn't work.
And even if Microsoft is BIG, they still don't have unlimited resources.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
So if number of records retreived by loop is expected to be less then this number, then FINDSET should be used rather then FIND('-').
Otherwise there is no point, there will be no performance gain (cursors are not creted only for first X (=recordset) records retreived by the loop).
Don't feel tempted to increase recordset value though, it allocates absolute amount of client memory for each call=> memory consumption by client increases with increased value of this parameter. Rule of thumb: recordset= average no. of lines in an order.
Also, if modifying record within the loop, one has to consider additional parameters for the FINDSET command.