<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040643" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040643</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Cool thanks!
Some good stuff</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228454</link>
    <description> &lt;p&gt;Cool thanks!&lt;/p&gt;
&lt;p&gt;Some good stuff for me to read up on!&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Feb 2008 21:15:16 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228454 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I use ADOdb php library for</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228442</link>
    <description> &lt;p&gt;I use ADOdb php library for a long time. Some time ago i start t use the PDO included object, that is better. But when i want efficiency, i use extension functions directly (mysql, mysqli, oci8, etc). Depending on your needs. ADOdb or PDO is easy ti use.&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Feb 2008 22:57:04 +0000</pubDate>
 <dc:creator>carloncho</dc:creator>
 <guid isPermaLink="false">comment 1228442 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>So what advice do you have</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228424</link>
    <description> &lt;blockquote&gt;&lt;p&gt;So what advice do you have for best practice for a site that has a large number of multiple simultaneous connections?&lt;/p&gt;&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Use InnoDB (where row level locking is needed, this is configurable per table);&lt;/li&gt;
&lt;li&gt;make sure you&#039;ve got the MySQL &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/query-cache.html&quot;&gt;query cache&lt;/a&gt; setup;&lt;/li&gt;
&lt;li&gt;generate and check your &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html&quot;&gt;MySQL slow query log&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;use the query log to make sure tables are indexed properly (put &lt;code&gt;log-queries-not-using-indexes&lt;/code&gt; in your &lt;code&gt;my.cnf&lt;/code&gt;;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are a bunch of other variables you can play around with (see: &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/optimizing-the-server.html&quot; title=&quot;http://dev.mysql.com/doc/refman/5.1/en/optimizing-the-server.html&quot;&gt;http://dev.mysql.com/doc/refman/5.1/en/optimizing-the-server.html&lt;/a&gt; ), and the best tip is to test, then tweak, then test again. Keep doing that until you get the best performance. I&#039;d also recommend &lt;a href=&quot;http://www.joedog.org/JoeDog/Siege&quot;&gt;siege&lt;/a&gt; for Web site stress testing. As an example, I made a file of all the URLs in TWF (seperated by new lines), then ran siege with these parameters:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;siege -c 100 -f ~/code/siegetwf/urls.txt -r 5 -i&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Setup your Web app on a home server and blast it using Siege. You&#039;ll soon find which optimisation settings work best.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Obviously the built in queries with php scripts are basic and not much can be done, do you think object based can help?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;OOP won&#039;t really help with performance. But there are things you can do with PHP to improve DB performance: using &lt;a href=&quot;http://www.danga.com/memcached/&quot;&gt;memcached&lt;/a&gt; with PHP is a good idea though. This can greatly reduce the number of hits reaching your database. &lt;a href=&quot;http://lists.danga.com/pipermail/memcached/2007-May/004098.html&quot;&gt;Facebook use it&lt;/a&gt; a great deal.&lt;/p&gt;
&lt;p&gt;I recently saw a good presentation on MySQL performance, it&#039;s centred around Drupal but applies to any Web application. &lt;a href=&quot;http://tag1consulting.com/drupal/performance&quot;&gt;Slides and audio are available&lt;/a&gt;. It&#039;s the last item under &#039;documents&#039;, you might find some other items of interest in there, I haven&#039;t really read through the other docs though. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Feb 2008 01:47:53 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228424 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>So what advice do you have</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228421</link>
    <description> &lt;p&gt;So what advice do you have for best practice for a site that has a large number of multiple simultaneous connections?&lt;/p&gt;
&lt;p&gt;Obviously the built in queries with php scripts are basic and not much can be done, do you think object based can help?&lt;br /&gt;
You mention the MyISAM, so is it essential to choose the absolute perfect field types and DB type for specific tasks? I mean is my researching the correct DB usage going to be worth it if I have a lot of active queries?&lt;br /&gt;
A combination of them all perhaps?&lt;/p&gt;
&lt;p&gt;This is something that interests me greatly, as if a site becomes hugely popular, as we generally hope for, I would like to know I have done the best possible to keep it running smooth and as fast as it can possibly be.&lt;/p&gt;
&lt;p&gt;This obviously all being best methods prior to the need for a second server when the connection numbers become too great for apache. Multiple server and load balancing is of course a whole new ball game, and I&#039;ll blow my mind when the need comes for that one &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 07 Feb 2008 18:27:48 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228421 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Again, it is becoming clear</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228412</link>
    <description> &lt;blockquote&gt;&lt;p&gt;Again, it is becoming clear it&#039;s ot something major that will simply speed up your site on its own.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Well, that&#039;s something it&#039;ll never do, it&#039;s always going to have the overhead of being database system agnostic. The thing about multiple simultaneous connections is a good point, indeed that wasn&#039;t tested.&lt;/p&gt;
&lt;p&gt;Think one of the big factors for the speed of simultaneous connections--in MySQL anyway--is the type of database backend in use. A big issue with the default MyISAM is the lack of row-level locks, any database with a large number of inserts will need to use InnoDB. So with MySQL it&#039;s not just the library used to access, but the database backend that are important. Just thought I&#039;d throw this trivia into the conversation. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 07 Feb 2008 02:26:12 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228412 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>hmm, interesting</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228401</link>
    <description> &lt;p&gt;hmm, interesting benchmark.&lt;br /&gt;
Doesn&#039;t tell all as it only tests a simple query and only one connection too. The main thing  I hear about ADO is it&#039;s better for multiple simultanious connections.&lt;/p&gt;
&lt;p&gt;Again, it is becoming clear it&#039;s ot something major that will simply speed up your site on its own.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
 </description>
     <pubDate>Wed, 06 Feb 2008 14:46:53 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228401 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Seems to me that if you have</title>
    <link>https://www.webmaster-forums.net/web-database-development/adodb-it-any-good#comment-1228398</link>
    <description> &lt;p&gt;Seems to me that if you have access to PHP5 (or up) &lt;a href=&quot;http://ca.php.net/manual/en/ref.pdo.php&quot;&gt;PDO&lt;/a&gt; is the best choice. It&#039;s built-in to PHP, so it&#039;s going to be faster than ADOdb (with the possible exception of the ADOdb C library). Anyway, here&#039;s a &lt;a href=&quot;http://joseph.randomnetworks.com/archives/2006/04/04/php-database-functions-vs-peardb-vs-adodb/&quot;&gt;benchmark: ADOdb vs. PEAR:DB vs. some other stuff&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;As my findings show it isn&#039;t popular, I can only &#039;presume&#039; that it isn&#039;t some new revolutionary thing we all should be learning to use.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Correct. Although, up until recently, it has been difficult to write PHP scripts that work across multiple database systems. Also this script has been around since 2000, and has been actively maintained all that time. It also has good documentation. If you look at the top of the page there&#039;s a list of CMS&#039; (and what not) that use it for database abstraction. I don&#039;t think ADOdb has really been trumpeted loudly, but it does seem to have been quietly chugging along very successfully for a good few years. It isn&#039;t pretty, or sexy, but it fills a valuable niche. Bless its abstracted-cotton socks. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Personally, practically everything I do involves Drupal these days, and it already has a &lt;a href=&quot;http://api.drupal.org/api/group/database&quot;&gt;database abstraction layer&lt;/a&gt;. Any other projects I work on tend to be tied to MySQL (for better or worse).&lt;/p&gt;
 </description>
     <pubDate>Wed, 06 Feb 2008 05:25:06 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228398 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
