SQL Language (MOSC)

MOSC Banner

Ordered query against large data set

edited Oct 5, 2011 8:15PM in SQL Language (MOSC) 10 commentsAnswered
Hello --
I'm looking to see if anyone has any idea to solve an issue that I am working. 

I need to run a query against a large table (10 billion records daily).   I need to limit the amount of results returned(generally 1000), as many will satisfy the predicate.  I have no idea what time window will contain enough data for that particular predicate to reach 1000 records.  It might be 5 minutes, it might be 21 hours. 
I must return the most recent results that satisfy the predicate.  So without sorting all of the data in the time window in a sub-select (way too slow) I don't see how to efficiently accomplish this.   

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center