|
-
Apr 19th, 2011, 01:51 AM
#4
Re: Get latest logs query
If you have relevant indexes then you can do a NOT EXISTS correlated query to ensure that the record is the latest for that particular user, app. If you don't have relevant indexes and will have to do full table scans then research use of analytic functions particular to your database. All other approaches will be non-scalable or are less performant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|