<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>huge amount of queries</title> 
  <pubDate>Fri, 10 Apr 2026 14:48:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4373</link> 
  <atom:link rel="self" type="application/rss+xml" title="huge amount of queries" href="https://bugs.horde.org/ticket/4373/rss" /> 
  <description>huge amount of queries</description> 
 
   
   
  <item> 
   <title>Opening kronolith (clicking on Organizing - Calendar) genera</title> 
   <description>Opening kronolith (clicking on Organizing - Calendar) generates an enormous amount  of SQL queries (even with 

$conf[&#039;group&#039;][&#039;cache&#039;] = true;

$conf[&#039;share&#039;][&#039;cache&#039;] = true;

)

</description> 
   <pubDate>Thu, 31 Aug 2006 17:53:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4373#t23667</link> 
  </item> 
   
  <item> 
   <title>There are tickets to deal with the datatree and other issues</title> 
   <description>There are tickets to deal with the datatree and other issues specifically. This is not useful to us as a bug report or enhancement.</description> 
   <pubDate>Thu, 31 Aug 2006 18:41:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4373#t23670</link> 
  </item> 
   
  <item> 
   <title>I checked the kronolith/lib/views/Month.php file and in ther</title> 
   <description>I checked the kronolith/lib/views/Month.php file and in there, there Kronolith::hasPermission(&#039;max_events&#039;) is called for every day of the month view. 

When I move the function call outside the &#039;foreach day&#039; loop, the number of database queries drops dramatically.



Here&#039;s a diff

RCS file: /repository/kronolith/lib/Views/Month.php,v

retrieving revision 1.9

diff -r1.9 Month.php

122c122

&lt;

---

&gt;       $hasPermission = Kronolith::hasPermission(&#039;max_events&#039;);

159d158

&lt;

162,163c161,162

&lt;                      Kronolith::hasPermission(&#039;max_events&#039;) === true ||

&lt;                      Kronolith::hasPermission(&#039;max_events&#039;) &gt; Kronolith::countEvents())) {

---

&gt;                      $hasPermission === true ||

&gt;                      $hasPermission &gt; Kronolith::countEvents())) {

</description> 
   <pubDate>Thu, 31 Aug 2006 20:42:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4373#t23677</link> 
  </item> 
   
  <item> 
   <title>A similar kind of loop is present in views/Day.php ...</title> 
   <description>A similar kind of loop is present in views/Day.php ...</description> 
   <pubDate>Thu, 31 Aug 2006 20:57:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4373#t23678</link> 
  </item> 
   
  <item> 
   <title>Now _that_ was very specific and useful. I&#039;ve consolidated t</title> 
   <description>Now _that_ was very specific and useful. I&#039;ve consolidated the check even more into a single $addLinks variable in both HEAD and FRAMEWORK_3. Thank you!</description> 
   <pubDate>Thu, 31 Aug 2006 22:34:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4373#t23681</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
