MySQL Forums
Forum List  »  Partitioning

Re: How to partition that table?
Posted by: Klaus Redegeld
Date: July 03, 2011 03:27AM

the 'slow' selects are all:
SELECT id FROM path WHERE path='$path' AND protocol='$protocol'
Will a normal index be more efficient then a unique key when reading/writing ?
Will 'limit 1' help, as I expect just one record?

| Name               | Engine | Version | Row_format | Rows      | Avg_row_length | Data_length | Max_data_length  | Index_length | Data_free | Auto_increment | Create_time         | Update_time         | Check_time          | Collation       | Checksum | Create_options | Comment |
+--------------------+--------+---------+------------+-----------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-----------------+----------+----------------+---------+
| path               | MyISAM |      10 | Dynamic    | 109781813 |             62 |  6852857056 |  281474976710655 |   9523100672 |         0 |      109781814 | 2010-09-06 16:02:04 | 2011-06-30 04:02:39 | 2011-06-29 13:49:47 | utf8_unicode_ci |     NULL |                |         |

The machine has 24 GB RAM, and key_buffer = 6G

Options: ReplyQuote


Subject
Views
Written By
Posted
4747
June 30, 2011 07:49AM
2021
July 01, 2011 11:25PM
Re: How to partition that table?
1759
July 03, 2011 03:27AM
1931
July 03, 2011 11:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.