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, I have the following table structure: A { int Id, string Name } I.e. there is a many to one relationship between A and B, with B having a reference to 1 A. I've specified eager loading for the link to A when loading a B. This is producing SQL like: SELECT SELECT Is there any reason LightSpeed does things like this? Is there a way to get LightSpeed to perform joins instead of multiple queries? Cheers, Kev |
|
|
Hello Kev, There are a couple of reasons why LightSpeed uses EXISTS subqueries rather than JOINs for eager loaded associations, but at this stage I believe they come down to time. Previous versions of LightSpeed used EXISTS because they didn't support JOIN, and although now we do have JOIN we haven't had time to revisit eager loads using this mechanism. We have a ticket on the backlog to look at this, but because the EXISTS mechanism works well enough for most scenarios we've prioritised other work ahead of this. We'll keep reviewing it and your feedback helps us prioritise -- thanks! |
|
|
Do you have any idea when you might get around to looking at this, even a very, very rough idea? I ask because it's a deal breaker as to whether we use LightSpeed or not.
|
|
|
Hi Ken, Its something we will be reviewing over the next few months as part of the next release however at this stage its not clear exactly what the implementation changes for this will involve so there are no guarentees we can make around making the changes at this time. Sorry we cant be more specific on this.
Jeremy |
|