This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Slightly odd request, but is there a way to ask an active LightSpeed context for allocate a new block of IDs from KeyTable? We have some automated performance tests which are counting the number of SQL queries in different code paths and watching for changes using an interceptor and logger. This works pretty well but depending on which order the tests run in we may or may not need more IDs, which affects the query count. We would only be resetting during testing, not production. I guess in theory I can set the block size to 1... but that seems a little crazy! Thanks |
|
|
You can force an allocation by adding a new entity where there isn't already a block of ID's available for consumption, this would work if you know specifically how many Id's you need (e.g. at the beginning of a test) but there isn't a manual call you can make to achieve this later on. If this is just for test cases what would you see as the issue with setting the block size to be 1? It will generate more KeyTable allocations of course but is that actually a problem for your automated tests?
|
|
|
Yeah I think we'll just eat the load in the tests, thanks. |
|