Обсуждение: cursors and sessions

Поиск
Список
Период
Сортировка

cursors and sessions

От
chester c young
Дата:
is there any way to share a cursor between sessions?

I have a costly query whose records need to be visited by in order by n
number of concurrent sessions, and am unable to find the best way of
doing this.

I'd almost like to write a daemon that hands out the next record, but
that's a royal pain to set up and maintain.

     ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


Re: cursors and sessions

От
"Aaron Bono"
Дата:
On Thu, Mar 13, 2008 at 5:54 PM, chester c young <<a
href="mailto:chestercyoung@yahoo.com">chestercyoung@yahoo.com</a>>wrote:<br /><div class="gmail_quote"><blockquote
class="gmail_quote"style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> is
thereany way to share a cursor between sessions?<br /><br /> I have a costly query whose records need to be visited by
inorder by n<br /> number of concurrent sessions, and am unable to find the best way of<br /> doing this.<br /><br />
I'dalmost like to write a daemon that hands out the next record, but<br /> that's a royal pain to set up and
maintain.<br/><a href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target="_blank"></a><br
/></blockquote></div><br/>Why not pump your data into a table that mirrors the cursor and then create a function that
popsitems off the top of this queuing table as needed by the different sessions?<br clear="all" /><br />-- <br
/>==================================================================<br/> Aaron Bono<br /> Aranya Software
Technologies,Inc.<br /><a href="http://www.aranya.com">http://www.aranya.com</a><br /><a
href="http://codeelixir.com">http://codeelixir.com</a><br/>
==================================================================