<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<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">
	<channel>
		<title>Gravity Support Forums Topic: optimizing GFCommon::replace_variable</title>
		<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable</link>
		<description>Gravity Support Forums Topic: optimizing GFCommon::replace_variable</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:19:52 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/optimizing-gfcommonreplace_variable" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "optimizing GFCommon::replace_variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable#post-73355</link>
			<pubDate>Thu, 30 Aug 2012 18:44:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73355@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;From the lead developer Alex Cancado:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
I have added that index to the lead detail table. If this comes up again I can take a deeper look and see if there is something else that can be done.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Thanks for the suggestion.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "optimizing GFCommon::replace_variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable#post-73193</link>
			<pubDate>Wed, 29 Aug 2012 20:53:19 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73193@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's a crazy amount of entries :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "optimizing GFCommon::replace_variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable#post-73170</link>
			<pubDate>Wed, 29 Aug 2012 17:58:55 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">73170@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I believe its only a problem once you start getting in the 100 000+ form entries.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "optimizing GFCommon::replace_variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable#post-73169</link>
			<pubDate>Wed, 29 Aug 2012 17:57:52 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">73169@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That was from New Relic transaction traces.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "optimizing GFCommon::replace_variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable#post-73130</link>
			<pubDate>Wed, 29 Aug 2012 16:09:55 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73130@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What tool did you use to benchmark that?&#60;/p&#62;
&#60;p&#62;I will bring this to the attention of the developers.  Thanks for posting this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "optimizing GFCommon::replace_variable"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/optimizing-gfcommonreplace_variable#post-73114</link>
			<pubDate>Wed, 29 Aug 2012 15:29:28 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">73114@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you have a look here:&#60;br /&#62;
&#60;a href=&#34;https://trello-attachments.s3.amazonaws.com/4f0680090bd2eb29720c5203/4f19acb1a63c9d76680115fe/15d8c3dfa13479c10918b94c80952280/upload_2012-08-29_at_3.23.54_pm.png&#34; rel=&#34;nofollow&#34;&#62;https://trello-attachments.s3.amazonaws.com/4f0680090bd2eb29720c5203/4f19acb1a63c9d76680115fe/15d8c3dfa13479c10918b94c80952280/upload_2012-08-29_at_3.23.54_pm.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You'll notice that in our setup the funtion GFCommon::replace_variable() is taking a lot of time. Over 2s total in a request. I'm sure there are many ways that you could optimize this and you guys would probably be much better at this than I am, but one simple thing we've done to help this is create an index on Lead_id and field_number. It seems to have helped us. Perhaps it would help others as well.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
