Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the Most Efficient Cursor and Lock Types?

0
Posted

What are the Most Efficient Cursor and Lock Types?

0

All of our tests so far have used a Forward Only cursor to iterate through the recordsets. However, ADO offers three other cursor types for recordsets – Static, Dynamic, and Keyset. Each of these provides additional functionality, such as the ability to move forward and backward and see changes to data as others are making them. Unfortunately, it is out of the scope of this article to discuss the implications of each of these cursor types. I will have to leave this up to you. However, below is a comparative analysis of each type. Each of these additional cursors impose significantly more overhead than their Forward Only cousin ( ADO__03.asp ). In addition, these cursors are slower during iteration. The caution that I would like to share with you is to avoid the trap of thinking, “Well, every once in a while I need a Dynamic cursor, so I will just use that all the time. Essentially, the same issues apply to lock types. Our previous tests have been exclusively using the Read Only lock ty

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.