Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8998735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:04:33+00:00 2026-06-16T00:04:33+00:00

I am trying to crawl data from an oracle database table and want a

  • 0

I am trying to crawl data from an oracle database table and want a solution for making checkpoint to the rows.

  • Basicly, the crawler will crawl at most 500 rows, It then stop for
    the application to process the data. After 2 minutes the crawler must
    continue from the last row (checkpoint).

  • Currently, I am using the solution with rownumber, but the result
    indicated some rows are missing.

This is probably a basic question, but being inexperienced with dealing with database. I just cannot find the acceptable solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:04:34+00:00Added an answer on June 16, 2026 at 12:04 am

    Normally, you wouldn’t design the system this way. Normally, your application would simply open a cursor, fetch 500 rows, process those rows in the application, fetch the next 500 rows, etc. So long as you don’t close the cursor, Oracle will continue to return results as of the system change number (SCN) when you opened the cursor. Any rows that are added after the cursor is opened won’t be returned, any rows that are deleted after the cursor is opened will be returned. Since readers do not block writers in Oracle, this approach does not prevent any other applications from using the table (which is often an issue in other databases).

    If you really want to design a system the way you describe, you would need to have a column (or set of columns) that you can order by consistently. This would have to be something like a monotonically increasing primary key (e.g. a sequence-generated primary key). You could then do something like

    SELECT *
      FROM( SELECT a.*,
                   rownum rn
              FROM( SELECT *
                      FROM table_name
                     ORDER BY some_key ) a
             WHERE rownum <= MAX_ROW)
     WHERE rn >= MIN_ROW
    

    Of course, with this sort of pagination query, your process will get slower and slower as you get toward the “end” of the table. Getting the first 500 rows will be reasonably efficient since you just have to sort the first 500 rows. When you’re fetching rows 9,500 through 10,000, you’re sorting 20 times as much data so that query will likely be an order of magnitude slower. If your table is large, this will generally cause performance to be quite poor. You can (slightly) improve the performance by adding logic that flips the order in the inner query and start fetching “earlier” pages once you’ve fetched half the pages.

    This approach can also miss rows. If, for example, the transaction that inserts ID 502 commits, then you fetch rows 501-550, then the transaction that inserts ‘ID` 501 commits, you will see row 502 but not row 501.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

'm trying to crawl some rows from CSV file using CSVFeedSpider The structure of
I'm trying to crawl about a thousand of web sites, from which I'm interested
I am trying to create a crawler that crawl first 100 pages on a
I need to run a web crawler and I want to do it from
I am trying to write my own version of Crawl.java from Nutch where I'd
I am trying to crawl wikipedia to get some data for text mining. I
I am simply trying to dump my segments from a crawl using readseg. If
I am trying to crawl a web site and fetch its pages' data. It
Using Python, I want to crawl data on a web page whose source if
I'm using scrapy and I'm trying to save the scraped data from a spider

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.