Afficher un message
Vieux 07/09/2007, 18h32   #1
Chris Portka
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Slow MySQL Table Inserts

I'm trying to create a table in MySQL with a few simple requirements,
but my table loads data very slowly. I need two columns, one of them a
10 digit string and another a very large integer. These pairs must be
unique. There must be an index on the 10 digit string for fast lookups.
Here's how I'm creating the table:

create table min (
mobile char(10),
bucketid bigint,
foreign key (bucketid) references idbucket2(id),
unique index uniqueminindex using btree (mobile, bucketid)
);

What could I be doing wrong? I require that the table have on the order
of a million entries. All inserts into the table are fairly slow, and
get slower the more things are inserted - with it eventually becoming
unbearably slow to add data. Thanks for any ,
Chris Portka
  Réponse avec citation
 
Page generated in 0,06270 seconds with 9 queries