<?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: MySQL Performance Issue - SELECT count(0) statements</title>
		<link>https://legacy.forums.gravityhelp.com/topic/mysql-performance-issue-select-count0-statements</link>
		<description>Gravity Support Forums Topic: MySQL Performance Issue - SELECT count(0) statements</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 15:01:45 +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/mysql-performance-issue-select-count0-statements" rel="self" type="application/rss+xml" />

		<item>
			<title>bkmacdaddy_asg on "MySQL Performance Issue - SELECT count(0) statements"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mysql-performance-issue-select-count0-statements#post-25416</link>
			<pubDate>Thu, 12 May 2011 14:02:53 +0000</pubDate>
			<dc:creator>bkmacdaddy_asg</dc:creator>
			<guid isPermaLink="false">25416@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl,&#60;/p&#62;
&#60;p&#62;Our forms did have Post Titles but was not required. I have since selected the 'Required' field in hopes that this prevents blank Post Titles.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "MySQL Performance Issue - SELECT count(0) statements"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mysql-performance-issue-select-count0-statements#post-25415</link>
			<pubDate>Thu, 12 May 2011 13:59:21 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">25415@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To follow up on what Alex said, you most likely have a lot of &#34;Untitled&#34; posts because your form is creating posts and never using a Title so you probably have an &#34;Untitled&#34; Post for every form entry... which could be a lot.&#60;/p&#62;
&#60;p&#62;Why is your form configured to create a Post but without using the Post Title field? Doesn't make much sense to use a form to create a post with no Title.  You may be using a Post Body field by accident.  If you use Post Fields from the Post Field group of fields in the Form Editor, these should only be used if you want your form to create a Post.  But Posts should have a Title so you need to use the Post Title field, your form does not have one otherwise this query wouldn't be executing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "MySQL Performance Issue - SELECT count(0) statements"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mysql-performance-issue-select-count0-statements#post-25408</link>
			<pubDate>Thu, 12 May 2011 12:07:55 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">25408@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That MySql command is executed when you have a form that has a post field, but not a post title field. It does that to come up with an unique post title. If you have lots of posts with name Untitled_1, Untitled_2, Untitled_3, etc... It is possible that every time your form is submitted, it will execute that sql statement many times until it finds an unique post title to use.&#60;br /&#62;
My suggestion is to simply add a post title to your form. You can pre-populate it with variables from the form and mark it as admin only so that it doesn't get displayed in the front end form.&#60;/p&#62;
&#60;p&#62;I hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bkmacdaddy_asg on "MySQL Performance Issue - SELECT count(0) statements"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mysql-performance-issue-select-count0-statements#post-25406</link>
			<pubDate>Thu, 12 May 2011 11:48:21 +0000</pubDate>
			<dc:creator>bkmacdaddy_asg</dc:creator>
			<guid isPermaLink="false">25406@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We are still looking for urgent assistance with this matter. Our entire server is being choked by these count(0) statements.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>solvdsystems on "MySQL Performance Issue - SELECT count(0) statements"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mysql-performance-issue-select-count0-statements#post-25360</link>
			<pubDate>Wed, 11 May 2011 19:10:26 +0000</pubDate>
			<dc:creator>solvdsystems</dc:creator>
			<guid isPermaLink="false">25360@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a site using the Gravity Forms plugin. therepealpledge.com &#60;/p&#62;
&#60;p&#62;I am noticing a significant mysql performance issue. I have done everything I can to tweak the MySQL database settings to gain performance. &#60;/p&#62;
&#60;p&#62;I am constantly seeing several SQL statements similiar to this:&#60;/p&#62;
&#60;p&#62;SELECT count(0) FROM wp_posts WHERE post_title='Untitled_2597'&#60;/p&#62;
&#60;p&#62;There are often 10 different types of these select statements and then run continuously. Can someone shed light as to if this is normal and if not or if there is a way I can curb these count(0) statements I would really appreciate it. It's killing my site.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
John
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
