|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
So I'm looking through my slow query log on my master DB server* and the only slow queries that ever get run on it now are queries that should (imo) be running on slave DB servers anyway. The most common one being the hourly cron job that queries for pmtextid's of orphaned records in pmtext. I really don't see any reason at all that query (or many others within cron processes) need to run on the master DB server. While we are at it* there should be a different type of query method imo... db->query_read_slow and let us define a specific slave DB server for those queries. I'm currently overriding the slave DB settings within my config.php file based on THIS_SCRIPT... And queries running via things like search.php just go to a dedicated slave DB server that does nothing but those crappy queries. __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
![]() | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
query_read_slave vs. mysql_query | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 10-28-2009 07:30 PM |
query_read_slave vs. mysql_query | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 10-28-2009 06:20 PM |
query_read_slave vs. mysql_query | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 10-28-2009 06:10 PM |
query_read_slave vs. mysql_query | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 10-28-2009 01:50 PM |
query_read_slave vs. mysql_query | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 10-28-2009 01:40 PM |