<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged queries</title>
<link>https://www.question2answer.org/qa/tag/queries</link>
<description>Powered by Question2Answer</description>
<item>
<title>For many people, it's taking longer than planned to post new queries on my website.</title>
<link>https://www.question2answer.org/qa/112283/many-people-taking-longer-than-planned-post-queries-website</link>
<description>Hello Team&lt;br /&gt;
&lt;br /&gt;
We're experiencing some issues with this website; it's taking a while to add new questions. I tried the standard suspects and disabled every plugin on the template, but nothing changed. even thoroughly cleaned Cloudflare's cache, but unfortunately, nothing worked.&lt;br /&gt;
&lt;br /&gt;
Thus, I made the decision to slightly speed up the server. upgraded to a plan that functions as follows:&lt;br /&gt;
&lt;br /&gt;
180 GB NVMe 4-based CPUs&lt;br /&gt;
&lt;br /&gt;
Memory: 8 GB; Bandwidth: 6 TB&lt;br /&gt;
&lt;br /&gt;
Hopefully not, however the problem still exists. Are there any bright minds out there that have ideas about how to approach this? Using Q2A version 1.8.8, if that adds any significance. We greatly value your wisdom! &lt;br /&gt;
&lt;br /&gt;
Thank you&lt;br /&gt;
&lt;br /&gt;
David Warner</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/112283/many-people-taking-longer-than-planned-post-queries-website</guid>
<pubDate>Sun, 04 Feb 2024 09:55:15 +0000</pubDate>
</item>
<item>
<title>how can I disable search function in my website based on q2a script 1.86?</title>
<link>https://www.question2answer.org/qa/107165/how-can-disable-search-function-in-website-based-q2a-script</link>
<description>As many hackers are making large number of search queries on my website and the search results are successfully indexed in google search console, I need to disable search function.&lt;br /&gt;
&lt;br /&gt;
I have blocked all ip ranges as well as remove search button from the website, but it is still happening by hackers.&lt;br /&gt;
&lt;br /&gt;
Please help.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/107165/how-can-disable-search-function-in-website-based-q2a-script</guid>
<pubDate>Sat, 08 Apr 2023 14:46:00 +0000</pubDate>
</item>
<item>
<title>Improving the speed of a query with qa_edit_history</title>
<link>https://www.question2answer.org/qa/76871/improving-the-speed-of-a-query-with-qa_edit_history</link>
<description>

&lt;p&gt;I am using this query:&lt;/p&gt;

&lt;pre&gt;SELECT COUNT(*) FROM `qa_edit_history`
WHERE DATE(`updated`) = CURDATE()&lt;/pre&gt;

&lt;p&gt;&lt;span style=&quot;font-family:sans-serif,Arial,Verdana,&amp;quot;Trebuchet MS&amp;quot;,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;&quot;&gt;It takes:&lt;/span&gt;&lt;/p&gt;

&lt;pre&gt;598.97 ms - 1 row - 1 column&lt;/pre&gt;

&lt;p&gt;I would like to speed it up.&lt;/p&gt;

&lt;p&gt;Can I do so by adding certain indizes to the table?&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/76871/improving-the-speed-of-a-query-with-qa_edit_history</guid>
<pubDate>Mon, 29 Jul 2019 07:47:49 +0000</pubDate>
</item>
<item>
<title>How to preserve NULL value with q2a queries?</title>
<link>https://www.question2answer.org/qa/61458/how-to-preserve-null-value-with-q2a-queries</link>
<description>

&lt;p&gt;As far as I can see, this query:
&lt;br&gt;
&lt;br&gt;qa_db_query_sub('UPDATE `qa_users` SET '.$field.' = $ WHERE userid = # ',
&lt;br&gt;$value, $userid);
&lt;br&gt;
&lt;br&gt;insert a string for $field when the passed $value is NULL.
&lt;br&gt;
&lt;br&gt;How can I force the NULLing of the field?&lt;/p&gt;

&lt;p&gt;----&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Seems that I had a &lt;strong&gt;trim($value)&lt;/strong&gt; somewhere that made the NULL an empty string.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;So NULL is set in the DB using the query above!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/61458/how-to-preserve-null-value-with-q2a-queries</guid>
<pubDate>Thu, 21 Dec 2017 04:19:27 +0000</pubDate>
</item>
<item>
<title>How to speed up queries on &quot;qa_eventlog&quot;?</title>
<link>https://www.question2answer.org/qa/59705/how-to-speed-up-queries-on-qa_eventlog</link>
<description>

&lt;p&gt;From my server logs, the slow notifier:&amp;nbsp;&lt;/p&gt;

&lt;p&gt;# Time: 2017-09-17T19:48:06.840513Z&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;# Query_time: 8.226348&amp;nbsp;&lt;/strong&gt; Lock_time: 0.000102 Rows_sent: 1&amp;nbsp; &lt;strong&gt;Rows_examined: 435073&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SET timestamp=1505677686;
&lt;br&gt;
&lt;br&gt;SELECT datetime,ipaddress,handle,event,params&amp;nbsp;
&lt;br&gt;FROM `qa_eventlog`
&lt;br&gt;WHERE UNIX_TIMESTAMP(datetime) &amp;gt; 1505677527
&lt;br&gt;AND (`event`='q_post' OR `event`='a_post' OR `event`='c_post' OR `event`='a_select')
&lt;br&gt;ORDER BY datetime DESC
&lt;br&gt;LIMIT 10;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Is there any ways how I can speed up the table or to optimize the query? 8.2 seconds is huge!&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/59705/how-to-speed-up-queries-on-qa_eventlog</guid>
<pubDate>Sun, 17 Sep 2017 17:47:38 +0000</pubDate>
</item>
<item>
<title>When to use function qa_db_select_with_pending() ?</title>
<link>https://www.question2answer.org/qa/34084/when-to-use-function-qa_db_select_with_pending</link>
<description>

&lt;p&gt;
	From qa-db-selects.php it can be read:&lt;/p&gt;


&lt;p&gt;
	&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return the results of all the SELECT operations specified by the supplied selectspec parameters, while also
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;performing all pending selects that have not yet been executed. If only one parameter is supplied, return its
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;result, otherwise return an array of results indexed as per the parameters.&lt;/em&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Can somebody clarify when we should use this function?&lt;/p&gt;


&lt;p&gt;
	Thanks
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/34084/when-to-use-function-qa_db_select_with_pending</guid>
<pubDate>Tue, 29 Apr 2014 08:43:15 +0000</pubDate>
</item>
</channel>
</rss>