--=====================_27595197==_.ALT
Content-Type: text/plain; charset="us-ascii"

oh-oh...

If this is right, then each user will clobber the previous user's query.
Does Cold Fusion cache queries per user session or globally at the server level?
Can I explicitly tell Cold Fusion to cache a query in the session scope instead of the 
server scope?

At 03:02 PM 8/1/00 -0700, Scott Weikert wrote:
>Have your query grab the entire range of rows you're looking to show from
>the get-go - no MAXROWS - but cache it. Perhaps use a dynamically-generated
>query name so that two people hitting the page at the same time won't
>overwrite each other's query results.
>
>Then, instead of doing a straight out <CFOUTPUT QUERY="queryname">, do a
>loop for however many items you want to show - and refer to your query rows
>like you would an array - "queryname.firstname[1]". Use your loop variable
>in the brackets. Since you know how many items you're showing on each page,
>you can pass a page number of some sort back and forth, and calculate the
>start/end values.
>
>Say you've got 95 items in a query, and you want to show 20 at a time... so
>you'd have "1 2 3 4 5" as your links. "1" would pass an start variable of 1,
>"2" would pass 21, "3" 41, etc. and you'd use those variables as the "FROM"
>values in your loops, and "TO" would be that plus 19.
>
>> -----Original Message-----
>> From: Peter Theobald [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, August 01, 2000 9:46 PM
>> To: [EMAIL PROTECTED]
>> Subject: Paging query results
>> 
>> 
>> --=====================_18393762==_.ALT
>> Content-Type: text/plain; charset="us-ascii"
>> 
>> What is the accepted "best" method of paging query results?
>> 
>> I am using STARTROW and MAXROWS to display one page at a 
>> time, and calling the same page with different arguments to 
>> change the page I am displaying... BUT this reexecutes the 
>> query each time. This query searches through a large database 
>> and takes a little time. This is a pretty inefficient way to 
>> do it (I think).
>> 
>> This must be a VERY common thing to do, so what is the 
>> recommended way of doing it?
>> I don't want to pass hundreds or thousands of rows of data in 
>> a variable...
>> 
>> At 10:40 AM 8/1/00 -0700, Ray, James A wrote:
>> >Is there a way in a <FORM> to force Upper Case while using a <INPUT
>> >type="text">?
>> >
>> >Thank you.
>> >
>> >Jim Ray
>> >
>> >
>> >
>> >
>> >
>> >-------------------------------------------------------------
>> -----------------
>> >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>> >To Unsubscribe visit 
>> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
>> s/cf_talk or send a message to 
>> [EMAIL PROTECTED] with 'unsubscribe' in the body. 
>> 
>> 
>> --------------------------------------------------------------
>> -------------
>> Peter Theobald, Chief Technology Officer
>> LiquidStreaming http://www.liquidstreaming.com
>> [EMAIL PROTECTED]
>> Phone 1.212.545.1232 Fax 1.212.679.8032
>> 
>> --=====================_18393762==_.ALT
>> Content-Type: text/html; charset="us-ascii"
>> 
>> <html>
>> <font size=3>What is the accepted &quot;best&quot; method of 
>> paging query
>> results?<br>
>> <br>
>> I am using STARTROW and MAXROWS to display one page at a time, and
>> calling the same page with different arguments to change the page I am
>> displaying... BUT this reexecutes the query each time. This query
>> searches through a large database and takes a little time. This is a
>> pretty inefficient way to do it (I think).<br>
>> <br>
>> This must be a VERY common thing to do, so what is the 
>> recommended way of
>> doing it?<br>
>> I don't want to pass hundreds or thousands of rows of data in a
>> variable...<br>
>> <br>
>> At 10:40 AM 8/1/00 -0700, Ray, James A wrote:<br>
>> <blockquote type=cite cite>Is there a way in a &lt;FORM&gt; to force
>> Upper Case while using a &lt;INPUT<br>
>> type=&quot;text&quot;&gt;?<br>
>> <br>
>> Thank you.<br>
>> <br>
>> Jim Ray<br>
>> <br>
>> <br>
>> <br>
>> <br>
>> <br>
>> --------------------------------------------------------------
>> ----------------<br>
>> Archives:
>> <a 
>> href="http://www.mail-archive.com/cf-talk@houseoffusion.com/" 
>> eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffu
>> sion.com/</a><br>
>> To Unsubscribe visit
>> <a 
>> href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp
>> ;body=lists/cf_talk" 
>> eudora="autourl">http://www.houseoffusion.com/index.cfm?sideba
>> r=lists&amp;body=lists/cf_talk</a>
>> or send a message to [EMAIL PROTECTED] with 
>> 'unsubscribe' in the body. </font></blockquote><br>
>> 
>> <font size=2><b><br>
>> --------------------------------------------------------------
>> -------------<br>
>> Peter Theobald, </b>Chief Technology Officer<br>
>> </font><font size=3 color="#0000FF"><b>LiquidStreaming 
>> </b></font><a href="http://www.liquidstreaming.com/" 
>> eudora="autourl"><font size=2 
>> color="#0000FF"><u>http://www.liquidstreaming.com</a><br>
>> </u></font><font size=2>[EMAIL PROTECTED]<br>
>> <b>Phone</b> 1.212.545.1232 <b>Fax</b> 1.212.679.8032<br>
>> </font></html>
>> 
>> --=====================_18393762==_.ALT--
>> 
>> --------------------------------------------------------------
>> ----------------
>> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body. 


---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 Fax 1.212.679.8032

--=====================_27595197==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<font size=3>oh-oh...<br>
<br>
If this is right, then each user will clobber the previous user's
query.<br>
Does Cold Fusion cache queries per user session or globally at the server
level?<br>
Can I explicitly tell Cold Fusion to cache a query in the session scope
instead of the server scope?<br>
<br>
At 03:02 PM 8/1/00 -0700, Scott Weikert wrote:<br>
<blockquote type=cite cite>Have your query grab the entire range of rows
you're looking to show from<br>
the get-go - no MAXROWS - but cache it. Perhaps use a
dynamically-generated<br>
query name so that two people hitting the page at the same time
won't<br>
overwrite each other's query results.<br>
<br>
Then, instead of doing a straight out &lt;CFOUTPUT
QUERY=&quot;queryname&quot;&gt;, do a<br>
loop for however many items you want to show - and refer to your query
rows<br>
like you would an array - &quot;queryname.firstname[1]&quot;. Use your
loop variable<br>
in the brackets. Since you know how many items you're showing on each
page,<br>
you can pass a page number of some sort back and forth, and calculate
the<br>
start/end values.<br>
<br>
Say you've got 95 items in a query, and you want to show 20 at a time...
so<br>
you'd have &quot;1 2 3 4 5&quot; as your links. &quot;1&quot; would pass
an start variable of 1,<br>
&quot;2&quot; would pass 21, &quot;3&quot; 41, etc. and you'd use those
variables as the &quot;FROM&quot;<br>
values in your loops, and &quot;TO&quot; would be that plus 19.<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Peter Theobald
[<a href="mailto:[EMAIL PROTECTED]" 
eudora="autourl">mailto:[EMAIL PROTECTED]</a>]<br>
&gt; Sent: Tuesday, August 01, 2000 9:46 PM<br>
&gt; To: [EMAIL PROTECTED]<br>
&gt; Subject: Paging query results<br>
&gt; <br>
&gt; <br>
&gt; --=====================_18393762==_.ALT<br>
&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; <br>
&gt; What is the accepted &quot;best&quot; method of paging query
results?<br>
&gt; <br>
&gt; I am using STARTROW and MAXROWS to display one page at a <br>
&gt; time, and calling the same page with different arguments to <br>
&gt; change the page I am displaying... BUT this reexecutes the <br>
&gt; query each time. This query searches through a large database <br>
&gt; and takes a little time. This is a pretty inefficient way to <br>
&gt; do it (I think).<br>
&gt; <br>
&gt; This must be a VERY common thing to do, so what is the <br>
&gt; recommended way of doing it?<br>
&gt; I don't want to pass hundreds or thousands of rows of data in <br>
&gt; a variable...<br>
&gt; <br>
&gt; At 10:40 AM 8/1/00 -0700, Ray, James A wrote:<br>
&gt; &gt;Is there a way in a &lt;FORM&gt; to force Upper Case while using
a &lt;INPUT<br>
&gt; &gt;type=&quot;text&quot;&gt;?<br>
&gt; &gt;<br>
&gt; &gt;Thank you.<br>
&gt; &gt;<br>
&gt; &gt;Jim Ray<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;
&gt;-------------------------------------------------------------<br>
&gt; -----------------<br>
&gt; &gt;Archives:
<a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/" 
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a><br>
&gt; &gt;To Unsubscribe visit <br>
&gt;
<a href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=list" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=list</a><br>
&gt; s/cf_talk or send a message to <br>
&gt; [EMAIL PROTECTED] with 'unsubscribe' in the body.
<br>
&gt; <br>
&gt; <br>
&gt; --------------------------------------------------------------<br>
&gt; -------------<br>
&gt; Peter Theobald, Chief Technology Officer<br>
&gt; LiquidStreaming
<a href="http://www.liquidstreaming.com/" 
eudora="autourl">http://www.liquidstreaming.com</a><br>
&gt; [EMAIL PROTECTED]<br>
&gt; Phone 1.212.545.1232 Fax 1.212.679.8032<br>
&gt; <br>
&gt; --=====================_18393762==_.ALT<br>
&gt; Content-Type: text/html; charset=&quot;us-ascii&quot;<br>
&gt; <br>
&gt; &lt;html&gt;<br>
&gt; &lt;font size=3&gt;What is the accepted &amp;quot;best&amp;quot;
method of <br>
&gt; paging query<br>
&gt; results?&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; I am using STARTROW and MAXROWS to display one page at a time,
and<br>
&gt; calling the same page with different arguments to change the page I
am<br>
&gt; displaying... BUT this reexecutes the query each time. This
query<br>
&gt; searches through a large database and takes a little time. This is
a<br>
&gt; pretty inefficient way to do it (I think).&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; This must be a VERY common thing to do, so what is the <br>
&gt; recommended way of<br>
&gt; doing it?&lt;br&gt;<br>
&gt; I don't want to pass hundreds or thousands of rows of data in 
a<br>
&gt; variable...&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; At 10:40 AM 8/1/00 -0700, Ray, James A wrote:&lt;br&gt;<br>
&gt; &lt;blockquote type=cite cite&gt;Is there a way in a
&amp;lt;FORM&amp;gt; to force<br>
&gt; Upper Case while using a &amp;lt;INPUT&lt;br&gt;<br>
&gt; type=&amp;quot;text&amp;quot;&amp;gt;?&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; Thank you.&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; Jim Ray&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; --------------------------------------------------------------<br>
&gt; ----------------&lt;br&gt;<br>
&gt; Archives:<br>
&gt; &lt;a <br>
&gt;
href=&quot;<a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/" 
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a>&quot;
<br>
&gt;
eudora=&quot;autourl&quot;&gt;<a 
href="http://www.mail-archive.com/cf-talk@houseoffu%3E%20sion.com/%3C/a%3E%3Cbr%3E%3E%20To%20Unsubscribe%20visit%3E%20%3Ca%20%3E%20href=%22http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;amp&gt;
 ;body=lists/cf_talk&quot; &gt; eudora=&quot;autourl" 
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffu<br>
&gt; sion.com/&lt;/a&gt;&lt;br&gt;<br>
&gt; To Unsubscribe visit<br>
&gt; &lt;a <br>
&gt;
href=&quot;http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;amp<br>
&gt; ;body=lists/cf_talk&quot; <br>
&gt;
eudora=&quot;autourl</a>&quot;&gt;<a 
href="http://www.houseoffusion.com/index.cfm?sideba" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sideba</a><br>
&gt; r=lists&amp;amp;body=lists/cf_talk&lt;/a&gt;<br>
&gt; or send a message to [EMAIL PROTECTED] with <br>
&gt; 'unsubscribe' in the body.
&lt;/font&gt;&lt;/blockquote&gt;&lt;br&gt;<br>
&gt; <br>
&gt; &lt;font size=2&gt;&lt;b&gt;&lt;br&gt;<br>
&gt; --------------------------------------------------------------<br>
&gt; -------------&lt;br&gt;<br>
&gt; Peter Theobald, &lt;/b&gt;Chief Technology Officer&lt;br&gt;<br>
&gt; &lt;/font&gt;&lt;font size=3
color=&quot;#0000FF&quot;&gt;&lt;b&gt;LiquidStreaming <br>
&gt; &lt;/b&gt;&lt;/font&gt;&lt;a
href=&quot;http://www.liquidstreaming.com/&quot; <br>
&gt; eudora=&quot;autourl&quot;&gt;&lt;font size=2 <br>
&gt;
color=&quot;#0000FF&quot;&gt;&lt;u&gt;<a href="http://www.liquidstreaming.com/" 
eudora="autourl">http://www.liquidstreaming.com</a>&lt;/a&gt;&lt;br&gt;<br>
&gt; &lt;/u&gt;&lt;/font&gt;&lt;font
size=2&gt;[EMAIL PROTECTED]&lt;br&gt;<br>
&gt; &lt;b&gt;Phone&lt;/b&gt; 1.212.545.1232 &lt;b&gt;Fax&lt;/b&gt;
1.212.679.8032&lt;br&gt;<br>
&gt; &lt;/font&gt;&lt;/html&gt;<br>
&gt; <br>
&gt; --=====================_18393762==_.ALT--<br>
&gt; <br>
&gt; --------------------------------------------------------------<br>
&gt; ----------------<br>
&gt; Archives:
<a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/" 
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a><br>
&gt; To Unsubscribe visit <br>
<a href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk</a>
or<br>
send a message to [EMAIL PROTECTED] with 'unsubscribe' in<br>
the body.<br>
------------------------------------------------------------------------------<br>
Archives: <a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/" 
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a><br>
To Unsubscribe visit <a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk</a>
 or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body. </font></blockquote><br>

<font size=2><b><br>
---------------------------------------------------------------------------<br>
Peter Theobald, </b>Chief Technology Officer<br>
</font><font size=3 color="#0000FF"><b>LiquidStreaming </b></font><a 
href="http://www.liquidstreaming.com/" eudora="autourl"><font size=2 
color="#0000FF"><u>http://www.liquidstreaming.com</a><br>
</u></font><font size=2>[EMAIL PROTECTED]<br>
<b>Phone</b> 1.212.545.1232 <b>Fax</b> 1.212.679.8032<br>
</font></html>

--=====================_27595197==_.ALT--

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to