473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SELECT with OFFSET oracle

I need to do SELECT query from java code on table that contains 1kkk rows , so the result set will be near 1kk rows. thats why I need to limit it, and run select query many times and each time to retrieve 10k rows only. After I get 10k rows I update it so in the next SELECT they wont be retrieved.
The problem is - in each select oracle looking from first row in the table so it reduces the performance.
How can I use OFFSET for avoiding oracle looking from first row and pass over already updated rows?
Sep 8 '11 #1
2 2937
rski
700 Expert 512MB
To avoid seq scan (looking from the first row) you can define an index on the table. Do you have any indexes defined?
Sep 8 '11 #2
Yes, I have default rowid in oracle as index . I can also store in java code rowid of last updated row.
So can I use in WHERE clause rowid < last_updated_rowid ?
Sep 8 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: ¢Ð¢ý¢ö | last post by:
I want to retrieve a range of record such as retrieving 11th to 20th records from 10000 records In SQL Server, i can use the "OFFSET" function. so i wanna ask does Oracle provide any function...
1
by: vikas.rijhwani | last post by:
Hello EveryBody, I had installed Oracle client 8.1.7. Now I want to install Developer 6i under the Oracle 8.1.7 home. When I tried to install this , it was giving message "the location...
7
by: Tim Smith | last post by:
Hi, Is it possible to create a progam to mimic the following action a) drag oledbadapter to form1.cs b) select my oracle ole connection c) enter 'select * from mytable' d) create adapter for...
6
by: brogdonm | last post by:
Hi everyone. I need to be able to query a database in Oracle and then actually save the data in an MS SQL database, does anyone know what is the best way to do this? Would it be best to do...
0
by: orcl dba | last post by:
I have three Oracle versions installed on my Windows system - Oracle 9.2 database, Oracle 10g client and Oracle 10g database. When I try to create a new database connection in Spotlight, it only...
2
by: truthysam | last post by:
Hello, I have a combo box in C# and i can do at most: type something and the match closest will be there in combo box. But i like to do : when i type A in combo box there will be...
0
by: bplantes | last post by:
Hi All, I am new at Oracle, so bear with me. I have installed InstantClient_10_2 and installed the Oracle10.2 drivers on my computer. I am trying to establish the ODBC Connection. Here are...
3
by: rmurgia | last post by:
I created an ODBC connection with the Microsoft ODBC for Oracle driver and successfully connected to Oracle from Microsoft Access by creating a pass through query. Can I use this connection from...
1
by: Simon429 | last post by:
Hi, I got a client application where it calls the webservices to save and retreive dates from an Oracle database. 1 problem I've encountered is that when a user select a certain date in the...
0
by: pjbr34 | last post by:
Hi all, The problem is this: Oracle table with NUMBER datatype is migrated into DB2 as DECIMAL. No problem. BUT The Java application that processes the data using Eclipse or WebLogic is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.