Re: Table optimization ideas needed
| From: | Chris | Date: | Tue, 25 Mar 2008 03:50:02 +0000 |
| Subject: | Re: Table optimization ideas needed | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44768@lists.php.net to get a copy of this message | ||
Shelley wrote:
Hi all, I made a post a week ago to ask for the idea of the fastest way to get table records. Fyi, http://phparch.cn/index.php/mysql/35-MySQL-programming/126-fastest-way-to-get-total-records-from-a-table Look at the time even a 'count(1)' took. Then you can imagine how much time sql such as "select a,b from table_name where c='d'" will take. I have a lot of tables like that. So my questions is: What's your practice to optimize tables like that?I pretty much follow what I've said in this article: http://www.designmagick.com/article/16/PostgreSQL/How-to-index-a-database -- Postgresql & php tutorials http://www.designmagick.com/