The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Google-style stateless cursors

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Rimmer

Posts: 117
Nickname: rimmer
Registered: Apr, 2003

Chris Rimmer is a developer at Nominet UK
Google-style stateless cursors Posted: Dec 6, 2004 12:52 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Chris Rimmer.
Original Post: Google-style stateless cursors
Feed Title: Chrs
Feed URL: http://chrs.blogspot.com/atom.xml
Feed Description: Techie stuff - Agile, XP, Java, PL/SQL, Ruby, Whatever
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Chris Rimmer
Latest Posts From Chrs

Advertisement
In the good old days when I spent my time cranking out PL/SQL, I spent lots of time creating cursors, since these are the best way for PL/SQL to interact with SQL. So, you define a cursor, open it and step through the rows that get returned, usually doing stuff with each row. End of story. Fast forward to the present day and I am implementing search functionality in a stateless architecture. So you can't open a cursor and step through all of the rows. You have to come up with something like Google, where you get displayed results a page at a time. So, you can open a cursor and pull back a page of results, but when you want the next page obviously the cursor you had has gone. So you have to open a new one and move through it until you get to page 2. This seems like something the world and his dog must have done, but I can't find much discussion of the topic and any techniques for doing it efficiently. Maybe I'm just not looking hard enough?

Read: Google-style stateless cursors

Topic: Reading list Previous Topic   Next Topic Topic: Preparing for Pollock

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use