<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Database problems in MySQL/PHP Applications</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 07 Nov 2009 18:35:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: juddy</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-195357</link>
		<dc:creator>juddy</dc:creator>
		<pubDate>Fri, 16 Nov 2007 22:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-195357</guid>
		<description>Have anyone encountered a problem when posting a specific rowid and it posts to all?</description>
		<content:encoded><![CDATA[<p>Have anyone encountered a problem when posting a specific rowid and it posts to all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dpabla</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-25099</link>
		<dc:creator>dpabla</dc:creator>
		<pubDate>Fri, 22 Dec 2006 00:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-25099</guid>
		<description>I have a question in regards to using multiple databases I wanted some advice. I have a jewelry website I am working on and we are switching everything dynamically. Lets say we are selling Jewerly. The user clicks on Jewerly and from Jewerly they click on a brand, lets called it Brand A - under Brand A there are &quot;Rings, Necklaces, Engagement Rings&quot; When a user clicks on &quot;Rings&quot; there is a page that displays sub-categories like &quot;Wedding Band&quot; so each category like Rings, Necklaces, etc, have their own sub=categories of items. How would I go about structering the database? Should I have 1 DB per Vendor (i.e. Brand A, B, C, D)? I am stuck figuring this out because each Vendor A, B, C, D etc have their own MAIN CATEGORIES and in those MAIN CATEGORIES you have sub-categories.

Thanks so much for your help.</description>
		<content:encoded><![CDATA[<p>I have a question in regards to using multiple databases I wanted some advice. I have a jewelry website I am working on and we are switching everything dynamically. Lets say we are selling Jewerly. The user clicks on Jewerly and from Jewerly they click on a brand, lets called it Brand A &#8211; under Brand A there are &#8220;Rings, Necklaces, Engagement Rings&#8221; When a user clicks on &#8220;Rings&#8221; there is a page that displays sub-categories like &#8220;Wedding Band&#8221; so each category like Rings, Necklaces, etc, have their own sub=categories of items. How would I go about structering the database? Should I have 1 DB per Vendor (i.e. Brand A, B, C, D)? I am stuck figuring this out because each Vendor A, B, C, D etc have their own MAIN CATEGORIES and in those MAIN CATEGORIES you have sub-categories.</p>
<p>Thanks so much for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-8265</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 13 Nov 2006 04:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-8265</guid>
		<description>Greg,  Can you show processlist so we can understand exactly what you mean as well as specify MySQL version and what kind of binary you&#039;re using. It would be best if you report problem on forum as it is not really related to this blog post.</description>
		<content:encoded><![CDATA[<p>Greg,  Can you show processlist so we can understand exactly what you mean as well as specify MySQL version and what kind of binary you&#8217;re using. It would be best if you report problem on forum as it is not really related to this blog post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Greenhaw</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-6524</link>
		<dc:creator>Greg Greenhaw</dc:creator>
		<pubDate>Mon, 06 Nov 2006 19:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-6524</guid>
		<description>Has anyone seen a situation where mysql reports max 
connections reached and freezes, with a bunch of processes waiting to finish.
Also, mysql will not shut down unless a manual kill -9 is run.

Our mysql db contains a mix of innodb and myism tables and run on linux with 16gigs or ram.

Here is our my.cnf


# sammple MySQL config file for very large systems.
#
#
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /usr/local/mysql/data) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the &quot;--help&quot; option.

# The following options will be passed to all MySQL clients
[client]
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock
#tmpdir 		=/mysql_tmp/
# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
bind-address=10.234.94.71
skip-locking
key_buffer_size = 2000M
max_allowed_packet = 32M

# table_cache=20M
# open-files-limit=20000

table_cache = 3072
open_files_limit = 9216

tmp_table_size=1000M
sort_buffer_size = 100M
read_buffer_size = 100M
read_rnd_buffer_size = 100M
myisam_sort_buffer_size = 100M
max_length_for_sort_data=2048
max_sort_length=2048
long-query-time=5
log-slow-queries=/apps/log/slow-query
interactive_timeout=300
wait_timeout=300
thread_cache = 40
max_connections=500
query_cache_size = 2000M
# Try number of CPU&#039;s*2 for thread_concurrency
thread_concurrency = 8
ft_min_word_len=3
#skip-grant-tables

# Don&#039;t listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the &quot;enable-named-pipe&quot; option) will render mysqld useless!
#
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
log-bin=db1-bin
log-bin-index=db1-bin.index

binlog-ignore-db=chrome_vin    
binlog-ignore-db=dummyData    
#binlog-ignore-db=edmunds    
#binlog-ignore-db=evox    
#binlog-ignore-db=jato    
#binlog-ignore-db=kbb    
binlog-ignore-db=mysql    
binlog-ignore-db=test    
#binlog-ignore-db=us_incentives_extract    
#binlog-ignore-db=vehicles    
#binlog-ignore-db=voiceshot

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id       = 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=, MASTER_PORT=,
#    MASTER_USER=, MASTER_PASSWORD= ;
#
#    where you replace , ,  by quoted strings and
#     by the master&#039;s port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST=&#039;125.564.12.1&#039;, MASTER_PORT=3306,
#    MASTER_USER=&#039;joe&#039;, MASTER_PASSWORD=&#039;secret&#039;;
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables&#039; values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  
#
# binary logging - not required for slaves, but recommended
#log-bin
# Point the following paths to different dedicated disks
#tmpdir         = /tmp/
#log-update     = /path-to-dedicated-directory/hostname
tmpdir		=/mysql_tmp/:/tmp/
# Uncomment the following if you are using BDB tables
#bdb_cache_size = 384M
#bdb_max_lock = 100000

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /usr/local/mysql/data/
#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
#innodb_log_group_home_dir = /usr/local/mysql/data/
#innodb_log_arch_dir = /usr/local/mysql/data/
innodb_data_home_dir = /db
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /db
innodb_log_arch_dir = /db

# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 8000M
#innodb_additional_mem_pool_size = 80M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 1000M
#innodb_log_buffer_size = 32M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

#[mysqlhotcopy]
interactive-timeout</description>
		<content:encoded><![CDATA[<p>Has anyone seen a situation where mysql reports max<br />
connections reached and freezes, with a bunch of processes waiting to finish.<br />
Also, mysql will not shut down unless a manual kill -9 is run.</p>
<p>Our mysql db contains a mix of innodb and myism tables and run on linux with 16gigs or ram.</p>
<p>Here is our my.cnf</p>
<p># sammple MySQL config file for very large systems.<br />
#<br />
#<br />
# This is for a large system with memory of 1G-2G where the system runs mainly<br />
# MySQL.<br />
#<br />
# You can copy this file to<br />
# /etc/my.cnf to set global options,<br />
# mysql-data-dir/my.cnf to set server-specific options (in this<br />
# installation this directory is /usr/local/mysql/data) or<br />
# ~/.my.cnf to set user-specific options.<br />
#<br />
# In this file, you can use all long options that a program supports.<br />
# If you want to know which options a program supports, run the program<br />
# with the &#8220;&#8211;help&#8221; option.</p>
<p># The following options will be passed to all MySQL clients<br />
[client]<br />
#password       = your_password<br />
port            = 3306<br />
socket          = /tmp/mysql.sock<br />
#tmpdir 		=/mysql_tmp/<br />
# Here follows entries for some specific programs</p>
<p># The MySQL server<br />
[mysqld]<br />
port            = 3306<br />
socket          = /tmp/mysql.sock<br />
bind-address=10.234.94.71<br />
skip-locking<br />
key_buffer_size = 2000M<br />
max_allowed_packet = 32M</p>
<p># table_cache=20M<br />
# open-files-limit=20000</p>
<p>table_cache = 3072<br />
open_files_limit = 9216</p>
<p>tmp_table_size=1000M<br />
sort_buffer_size = 100M<br />
read_buffer_size = 100M<br />
read_rnd_buffer_size = 100M<br />
myisam_sort_buffer_size = 100M<br />
max_length_for_sort_data=2048<br />
max_sort_length=2048<br />
long-query-time=5<br />
log-slow-queries=/apps/log/slow-query<br />
interactive_timeout=300<br />
wait_timeout=300<br />
thread_cache = 40<br />
max_connections=500<br />
query_cache_size = 2000M<br />
# Try number of CPU&#8217;s*2 for thread_concurrency<br />
thread_concurrency = 8<br />
ft_min_word_len=3<br />
#skip-grant-tables</p>
<p># Don&#8217;t listen on a TCP/IP port at all. This can be a security enhancement,<br />
# if all processes that need to connect to mysqld run on the same host.<br />
# All interaction with mysqld must be made via Unix sockets or named pipes.<br />
# Note that using this option without enabling named pipes on Windows<br />
# (via the &#8220;enable-named-pipe&#8221; option) will render mysqld useless!<br />
#<br />
#skip-networking</p>
<p># Replication Master Server (default)<br />
# binary logging is required for replication<br />
log-bin=db1-bin<br />
log-bin-index=db1-bin.index</p>
<p>binlog-ignore-db=chrome_vin<br />
binlog-ignore-db=dummyData<br />
#binlog-ignore-db=edmunds<br />
#binlog-ignore-db=evox<br />
#binlog-ignore-db=jato<br />
#binlog-ignore-db=kbb<br />
binlog-ignore-db=mysql<br />
binlog-ignore-db=test<br />
#binlog-ignore-db=us_incentives_extract<br />
#binlog-ignore-db=vehicles<br />
#binlog-ignore-db=voiceshot</p>
<p># required unique id between 1 and 2^32 &#8211; 1<br />
# defaults to 1 if master-host is not set<br />
# but will not function as a master if omitted<br />
server-id       = 1</p>
<p># Replication Slave (comment out master section to use this)<br />
#<br />
# To configure this host as a replication slave, you can choose between<br />
# two methods :<br />
#<br />
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -<br />
#    the syntax is:<br />
#<br />
#    CHANGE MASTER TO MASTER_HOST=, MASTER_PORT=,<br />
#    MASTER_USER=, MASTER_PASSWORD= ;<br />
#<br />
#    where you replace , ,  by quoted strings and<br />
#     by the master&#8217;s port number (3306 by default).<br />
#<br />
#    Example:<br />
#<br />
#    CHANGE MASTER TO MASTER_HOST=&#8217;125.564.12.1&#8242;, MASTER_PORT=3306,<br />
#    MASTER_USER=&#8217;joe&#8217;, MASTER_PASSWORD=&#8217;secret&#8217;;<br />
#<br />
# OR<br />
#<br />
# 2) Set the variables below. However, in case you choose this method, then<br />
#    start replication for the first time (even unsuccessfully, for example<br />
#    if you mistyped the password in master-password and the slave fails to<br />
#    connect), the slave will create a master.info file, and any later<br />
#    change in this file to the variables&#8217; values below will be ignored and<br />
#    overridden by the content of the master.info file, unless you shutdown<br />
#    the slave server, delete master.info and restart the slaver server.<br />
#    For that reason, you may want to leave the lines below untouched<br />
#    (commented) and instead use CHANGE MASTER TO (see above)<br />
#<br />
# required unique id between 2 and 2^32 &#8211; 1<br />
# (and different from the master)<br />
# defaults to 2 if master-host is set<br />
# but will not function as a slave if omitted<br />
#server-id       = 2<br />
#<br />
# The replication master for this slave &#8211; required<br />
#master-host     =<br />
#<br />
# The username the slave will use for authentication when connecting<br />
# to the master &#8211; required<br />
#master-user     =<br />
#<br />
# The password the slave will authenticate with when connecting to<br />
# the master &#8211; required<br />
#master-password =<br />
#<br />
# The port the master is listening on.<br />
# optional &#8211; defaults to 3306<br />
#master-port     =<br />
#<br />
# binary logging &#8211; not required for slaves, but recommended<br />
#log-bin<br />
# Point the following paths to different dedicated disks<br />
#tmpdir         = /tmp/<br />
#log-update     = /path-to-dedicated-directory/hostname<br />
tmpdir		=/mysql_tmp/:/tmp/<br />
# Uncomment the following if you are using BDB tables<br />
#bdb_cache_size = 384M<br />
#bdb_max_lock = 100000</p>
<p># Uncomment the following if you are using InnoDB tables<br />
#innodb_data_home_dir = /usr/local/mysql/data/<br />
#innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend<br />
#innodb_log_group_home_dir = /usr/local/mysql/data/<br />
#innodb_log_arch_dir = /usr/local/mysql/data/<br />
innodb_data_home_dir = /db<br />
innodb_data_file_path = ibdata1:10M:autoextend<br />
innodb_log_group_home_dir = /db<br />
innodb_log_arch_dir = /db</p>
<p># You can set .._buffer_pool_size up to 50 &#8211; 80 %<br />
# of RAM but beware of setting memory usage too high<br />
innodb_buffer_pool_size = 8000M<br />
#innodb_additional_mem_pool_size = 80M<br />
# Set .._log_file_size to 25 % of buffer pool size<br />
innodb_log_file_size = 1000M<br />
#innodb_log_buffer_size = 32M<br />
#innodb_flush_log_at_trx_commit = 1<br />
#innodb_lock_wait_timeout = 50</p>
<p>[mysqldump]<br />
quick<br />
max_allowed_packet = 16M</p>
<p>[mysql]<br />
no-auto-rehash<br />
# Remove the next comment character if you are not familiar with SQL<br />
#safe-updates</p>
<p>[isamchk]<br />
key_buffer = 256M<br />
sort_buffer_size = 256M<br />
read_buffer = 2M<br />
write_buffer = 2M</p>
<p>[myisamchk]<br />
key_buffer = 256M<br />
sort_buffer_size = 256M<br />
read_buffer = 2M<br />
write_buffer = 2M</p>
<p>#[mysqlhotcopy]<br />
interactive-timeout</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-5650</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 02 Nov 2006 09:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-5650</guid>
		<description>Suma,

It should not be reason why it is slow per say.</description>
		<content:encoded><![CDATA[<p>Suma,</p>
<p>It should not be reason why it is slow per say.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suma</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-5644</link>
		<dc:creator>suma</dc:creator>
		<pubDate>Thu, 02 Nov 2006 07:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-5644</guid>
		<description>my website has 6 subdomain and separate databases.... is that the reason why it is slow (im using php mysql with wordpress)</description>
		<content:encoded><![CDATA[<p>my website has 6 subdomain and separate databases&#8230;. is that the reason why it is slow (im using php mysql with wordpress)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-1746</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 14 Aug 2006 07:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-1746</guid>
		<description>Sheery, 

I would not be limiting it to single system.  If you&#039;re using several boxes you brobably have them on local network with 1GBit connection between them.  This allows you do do many thousands of queries per second from single connection.  From multiple connections it will be many tens of thousands per second. 

Network is fast these days, this is why memcached is getting so popular or MySQL Cluster can exist.

Now you probably do not want to do 100 of the queries instead of one.   Please take a close look at my recommendation I recommend using 2-3 queries when MySQL optimizer does not optimize query efficient enough or for some other reason single query requires much more work than separate queries.</description>
		<content:encoded><![CDATA[<p>Sheery, </p>
<p>I would not be limiting it to single system.  If you&#8217;re using several boxes you brobably have them on local network with 1GBit connection between them.  This allows you do do many thousands of queries per second from single connection.  From multiple connections it will be many tens of thousands per second. </p>
<p>Network is fast these days, this is why memcached is getting so popular or MySQL Cluster can exist.</p>
<p>Now you probably do not want to do 100 of the queries instead of one.   Please take a close look at my recommendation I recommend using 2-3 queries when MySQL optimizer does not optimize query efficient enough or for some other reason single query requires much more work than separate queries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-1734</link>
		<dc:creator>Sheeri</dc:creator>
		<pubDate>Sun, 13 Aug 2006 23:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-1734</guid>
		<description>&lt;I&gt;On other hand in MySQL you might be better of using several queries than doing complicated ones. &lt;/I&gt;

This is true, however most developers don&#039;t realize that this is *within the database system only*.  ie, if you only go to the database once, then go ahead, run as many queries as you want.

If a system is being developed with a *remote* database in mind, you actually have to find a good balance.  If the network back and forth with 100 queries costs more than just doing the complex query in the first place, then it&#039;s faster to do the complex query and only go across the network and back to the database once.</description>
		<content:encoded><![CDATA[<p><i>On other hand in MySQL you might be better of using several queries than doing complicated ones. </i></p>
<p>This is true, however most developers don&#8217;t realize that this is *within the database system only*.  ie, if you only go to the database once, then go ahead, run as many queries as you want.</p>
<p>If a system is being developed with a *remote* database in mind, you actually have to find a good balance.  If the network back and forth with 100 queries costs more than just doing the complex query in the first place, then it&#8217;s faster to do the complex query and only go across the network and back to the database once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-1722</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 13 Aug 2006 13:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-1722</guid>
		<description>Vadim, 

For test dataset rule is pretty simple - system should behave same as it will behave on production. So generate about same amount of data as you would run on the single box in production.  Sometimes you want to scale it down a bit if your test system is low end. 

Basically you want two things to apply - queries should be executed same way on production and test system. Read EXPLAIN should be the same.    Second - cache efficiency should be similar.  CPU bound workload can&#039;t be compared to disk bound.</description>
		<content:encoded><![CDATA[<p>Vadim, </p>
<p>For test dataset rule is pretty simple &#8211; system should behave same as it will behave on production. So generate about same amount of data as you would run on the single box in production.  Sometimes you want to scale it down a bit if your test system is low end. </p>
<p>Basically you want two things to apply &#8211; queries should be executed same way on production and test system. Read EXPLAIN should be the same.    Second &#8211; cache efficiency should be similar.  CPU bound workload can&#8217;t be compared to disk bound.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/comment-page-1/#comment-1697</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Sat, 12 Aug 2006 13:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/08/11/database-problems-in-mysqlphp-applications/#comment-1697</guid>
		<description>What is considered as &quot;reasonable amount of data&quot;? 
I understand, that it depends on application,number of tables/columns, but just as rule of thumb, how many rows ensure that I am on safe side?</description>
		<content:encoded><![CDATA[<p>What is considered as &#8220;reasonable amount of data&#8221;?<br />
I understand, that it depends on application,number of tables/columns, but just as rule of thumb, how many rows ensure that I am on safe side?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
