Peer Reiser wrote:

>Next week I will have access to a new PomerMac G5 with Dual 2GHZ
>processors, and i want to do some indexing. Does anyone know if MySQL
>will take advantage of dual processors if the only process running is
>the indexing process??

No, it won't directly.  However, other processes going on will use the 2nd
CPU (non-mysql processes) and if you run other queries they will use it.

>Is disk I/O more important ?

Frequently.  open a terminal window and run top while the query is running.
If mysqld is using 100% of a cpu on a single process then the query is CPU
bound.  If it's using signficantyly less (e.g. 30%) then it's probably disk
bound.

The solutions to being disk bound can be lots of things:

1)  Better indexing
2)  More RAM (the G5 will help here as it can go past 2 GB)
3)  Faster disks, the G5's faster drives and faster bus will help

In general #1 is far and away the biggest factor, you can speed up queries
by a factor of thousands or more.

>The bad temper of my boss seems to increase exponentially with time
>and he thinks that 2 weeks for importing the 27 million rows and
>indexing is too slow (he doesnt know anything about informatics, but
>as i am missing experience i cannot say if he is right or not).

I don't know the structure, but that order of magnitude is doable in much
less time.  We imported 30 million records on a server running other
queries in less than 3 hours.  However, it was an InnoDB table and there
were only numeric fields in it.

You can probably improve things by tweaking your table structure and my.cnf
file.  There's a lot of detail in the mysql manual on the web.

Good luck,
Ware

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to