Actually there are ways to step through a result set using database
functions so that you do bot store huge resultsets in memory, if you google
it then you will find some examples.

2 simple solutions are.

1. Dont query all the data at all, instead provide a search form to get at
specific records, which is usually much simpler thsn paging through
hundreds or thousands of records.
2. Only query the primary keys, and then loop over that list grabbing x
records at a time and doing a new query to get all rows for those keys.

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Jan 5, 2013 11:12 AM, "Ben Conner" <b...@webworldinc.com> wrote:

>
> That's what I suspected.  Much appreciated.
>
> --Ben
>
> On 1/4/2013 6:40 AM, Dave Watts wrote:
> >> A question came up recently with one of my client developers who is
> potentially
> >> returning a large # of rows from a query.  The question was whether the
> result
> >> set is stored in memory or spooled to disk somewhere.  I didn't know
> but assumed
> >> it was memory resident.
> >>
> >> Anyone know the answer to this?  Can it be controlled and/or limited?
>  (CF 9)
> > All CF variables are stored in memory. You can limit the size of the
> > resultset by writing your SQL accordingly, but that's it really.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > http://training.figleaf.com/
> >
> > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> > GSA Schedule, and provides the highest caliber vendor-authorized
> > instruction at our training centers, online, or onsite.
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353787
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to