Adaptive Server provides these locking schemes:
- Allpages locking, which locks data pages and index pages
- Datapages locking, which locks only data pages
- Datarows locking, which locks only data rows
My question is that if the number of locks depends on the locking strategy. Some people say that many locks is a sign of bad application implementation or something similar. What I mean is that the datarows strategy will need more locks than for example datapages since datapage covers many rows under one lock. I'm not entirely sure of my assumptions.
I currently have 200k and this is still not enough.
Recently changed the locking strategy on my tables to datarows to improve the performance and since then I've been increasing the locks.
Sybase documentation says the range is within 1000–2147483647.
Why not just setting it to 2147483647?