<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Increasing the speed of APEX Collections</title>
	<atom:link href="http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/feed/" rel="self" type="application/rss+xml" />
	<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/</link>
	<description>My meandering thoughts about Oracle, Application Express and life in general</description>
	<lastBuildDate>Mon, 05 Sep 2011 05:48:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: John Scott</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-541735</link>
		<dc:creator>John Scott</dc:creator>
		<pubDate>Mon, 04 Apr 2011 06:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-541735</guid>
		<description>Hi Damir,

I&#039;m not entirely sure I understand your question? The two examples call different routines -

CREATE_COLLECTION_FROM_QUERY
CREATE_COLLECTION_FROM_QUERY_B

John.</description>
		<content:encoded><![CDATA[<p>Hi Damir,</p>
<p>I&#8217;m not entirely sure I understand your question? The two examples call different routines -</p>
<p>CREATE_COLLECTION_FROM_QUERY<br />
CREATE_COLLECTION_FROM_QUERY_B</p>
<p>John.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damir</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-541678</link>
		<dc:creator>Damir</dc:creator>
		<pubDate>Sun, 03 Apr 2011 15:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-541678</guid>
		<description>Hi!

I do not understand what is the difference in mentioned two examples!??

AFAIK, if parameter is not required then default value is assigned, and in thi scase it is &quot;N&quot; as in your first example...

Any comment?
THX
Damir</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I do not understand what is the difference in mentioned two examples!??</p>
<p>AFAIK, if parameter is not required then default value is assigned, and in thi scase it is &#8220;N&#8221; as in your first example&#8230;</p>
<p>Any comment?<br />
THX<br />
Damir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denise</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-538108</link>
		<dc:creator>Denise</dc:creator>
		<pubDate>Wed, 16 Feb 2011 14:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-538108</guid>
		<description>Hi John,
although you posted this a long time ago I just came across this bit of code as faced a problem with my collections. Usually I don&#039;t have any problems with collections but now it hit me. Anyway, I would like to tell you my problem and then maybe you will have a tip or something:
I am having a manually created tabular form with a checkbox as first column. When rows are ticked and button is pressed the page is submitted. A process will run:
1. if collection exists, delete it
2. create collection
3. loop through ticked rows APEX_APPLICATION.G_F01.COUNT 
4. add members to collection APEX_COLLECTION.ADD_MEMBER(
        p_collection_name =&gt; v_coll_name,
        p_c001            =&gt; apex_application.g_f02(APEX_APPLICATION.G_F01(i)),--id
a few more columns are coming up
5.when I run the page in debug mode the process will run 90!! seconds.
For one week long it ran fine. I don&#039;t know what happened all of a sudden to run so long.
Do you have an idea?
Any help is highly appreciated.
Thanks in advance
Denise</description>
		<content:encoded><![CDATA[<p>Hi John,<br />
although you posted this a long time ago I just came across this bit of code as faced a problem with my collections. Usually I don&#8217;t have any problems with collections but now it hit me. Anyway, I would like to tell you my problem and then maybe you will have a tip or something:<br />
I am having a manually created tabular form with a checkbox as first column. When rows are ticked and button is pressed the page is submitted. A process will run:<br />
1. if collection exists, delete it<br />
2. create collection<br />
3. loop through ticked rows APEX_APPLICATION.G_F01.COUNT<br />
4. add members to collection APEX_COLLECTION.ADD_MEMBER(<br />
        p_collection_name =&gt; v_coll_name,<br />
        p_c001            =&gt; apex_application.g_f02(APEX_APPLICATION.G_F01(i)),&#8211;id<br />
a few more columns are coming up<br />
5.when I run the page in debug mode the process will run 90!! seconds.<br />
For one week long it ran fine. I don&#8217;t know what happened all of a sudden to run so long.<br />
Do you have an idea?<br />
Any help is highly appreciated.<br />
Thanks in advance<br />
Denise</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kemp</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-490015</link>
		<dc:creator>Jeff Kemp</dc:creator>
		<pubDate>Mon, 15 Mar 2010 07:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-490015</guid>
		<description>Great tip, thanks!\n\n&quot;18 seconds is a long time for an user to wait for something to happen in a web application&quot;\n\nI would have said, &quot;18 seconds is a long time for a user to wait for something to happen in a web application, unless they specifically asked for all 55,000 records to be retrieved and shown on the page.&quot;</description>
		<content:encoded><![CDATA[<p>Great tip, thanks!\n\n&#8221;18 seconds is a long time for an user to wait for something to happen in a web application&#8221;\n\nI would have said, &#8220;18 seconds is a long time for a user to wait for something to happen in a web application, unless they specifically asked for all 55,000 records to be retrieved and shown on the page.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Scott</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485539</link>
		<dc:creator>John Scott</dc:creator>
		<pubDate>Thu, 25 Feb 2010 09:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485539</guid>
		<description>Peter,

Thank you, yes I have a few more (draft) posts relating to collections that I should be publishing soon (when I get a chance to finish them).

John.</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Thank you, yes I have a few more (draft) posts relating to collections that I should be publishing soon (when I get a chance to finish them).</p>
<p>John.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Scott</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485538</link>
		<dc:creator>John Scott</dc:creator>
		<pubDate>Thu, 25 Feb 2010 09:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485538</guid>
		<description>Joel,

Thank you and thanks for the heads up on the 4.0 improvements, I can see those being *extremely* useful!

John.</description>
		<content:encoded><![CDATA[<p>Joel,</p>
<p>Thank you and thanks for the heads up on the 4.0 improvements, I can see those being *extremely* useful!</p>
<p>John.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier Dupont</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485528</link>
		<dc:creator>Olivier Dupont</dc:creator>
		<pubDate>Thu, 25 Feb 2010 08:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485528</guid>
		<description>Hey John,

I use collections a lot but never the CREATE_COLLECTION_FROM_QUERY_B option.

Thanks for the tip.</description>
		<content:encoded><![CDATA[<p>Hey John,</p>
<p>I use collections a lot but never the CREATE_COLLECTION_FROM_QUERY_B option.</p>
<p>Thanks for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Raganitsch</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485491</link>
		<dc:creator>Peter Raganitsch</dc:creator>
		<pubDate>Thu, 25 Feb 2010 06:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485491</guid>
		<description>Hi John,

thanks for this hint, i&#039;ll try this.

Do you have any further tips or best practices when dealing with collections? When to use and when not?

thanks,

Peter</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>thanks for this hint, i&#8217;ll try this.</p>
<p>Do you have any further tips or best practices when dealing with collections? When to use and when not?</p>
<p>thanks,</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StewS</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485409</link>
		<dc:creator>StewS</dc:creator>
		<pubDate>Wed, 24 Feb 2010 21:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485409</guid>
		<description>John, 

Thanks for the good tip and the statistics.

Thanks to Joel for the hint about the new and improved version upcoming.</description>
		<content:encoded><![CDATA[<p>John, </p>
<p>Thanks for the good tip and the statistics.</p>
<p>Thanks to Joel for the hint about the new and improved version upcoming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel R. Kallman</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485392</link>
		<dc:creator>Joel R. Kallman</dc:creator>
		<pubDate>Wed, 24 Feb 2010 17:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485392</guid>
		<description>Nice post, John.  It&#039;s one I&#039;ve always wanted to write.

What you&#039;ll see in APEX 4.0 (and in the upcoming refresh of the Early Adopter&#039;s instance of APEX 4.0) are three new parameters to create_collection_from_query_b, namely p_names and p_values, so you can pass in the bind variable names and values for your query, and p_max_row_count - so you can easily limit the number of rows populated in the collection, instead of having to write our own outer SELECT.

Also, the part about the limitation of 2,000 bytes for VARCHAR2 no longer applies if you&#039;re running DB 11gR2 (where the DBMS_SQL.VARCHAR2_TABLE type was finally resized to a table of VARCHAR2(4000)).

Joel</description>
		<content:encoded><![CDATA[<p>Nice post, John.  It&#8217;s one I&#8217;ve always wanted to write.</p>
<p>What you&#8217;ll see in APEX 4.0 (and in the upcoming refresh of the Early Adopter&#8217;s instance of APEX 4.0) are three new parameters to create_collection_from_query_b, namely p_names and p_values, so you can pass in the bind variable names and values for your query, and p_max_row_count &#8211; so you can easily limit the number of rows populated in the collection, instead of having to write our own outer SELECT.</p>
<p>Also, the part about the limitation of 2,000 bytes for VARCHAR2 no longer applies if you&#8217;re running DB 11gR2 (where the DBMS_SQL.VARCHAR2_TABLE type was finally resized to a table of VARCHAR2(4000)).</p>
<p>Joel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Lancaster</title>
		<link>http://jes.blogs.shellprompt.net/2010/02/24/increasing-the-speed-of-apex-collections/comment-page-1/#comment-485363</link>
		<dc:creator>Mark Lancaster</dc:creator>
		<pubDate>Wed, 24 Feb 2010 10:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://jes.blogs.shellprompt.net/?p=374#comment-485363</guid>
		<description>Hi John

That&#039;s a really good tip to remember.

I can&#039;t say I&#039;ve ever used a collection to load 55,000 records, but agree entirely with you that collections are a great feature.

Every time I use them I keep saying I should use collections more often.</description>
		<content:encoded><![CDATA[<p>Hi John</p>
<p>That&#8217;s a really good tip to remember.</p>
<p>I can&#8217;t say I&#8217;ve ever used a collection to load 55,000 records, but agree entirely with you that collections are a great feature.</p>
<p>Every time I use them I keep saying I should use collections more often.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

