Re: [PERFORM] MySQL is faster than PgSQL but a large margin in

2005-12-23 Thread Vivek Khera
On Dec 22, 2005, at 9:44 PM, Juan Casero wrote: Agreed. I have a 13 million row table that gets a 100,000 new records every week. There are six indexes on this table. Right about the time when it i have some rather large tables that grow much faster than this (~1 million per day on

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in

2005-12-22 Thread Markus Schaber
Hi, Madison, Hi, Luke, Luke Lonergan wrote: Note that indexes will also slow down loading. For large loading bunches, it often makes sense to temporarily drop the indices before the load, and recreate them afterwards, at least, if you don't have normal users accessing the database

[PERFORM] MySQL is faster than PgSQL but a large margin in my program... any ideas why?

2005-12-21 Thread Madison Kelly
Hi all, On a user's request, I recently added MySQL support to my backup program which had been written for PostgreSQL exclusively until now. What surprises me is that MySQL is about 20%(ish) faster than PostgreSQL. Now, I love PostgreSQL and I want to continue recommending it as the

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in my program... any ideas why?

2005-12-21 Thread Stephen Frost
* Madison Kelly ([EMAIL PROTECTED]) wrote: If the performace difference comes from the 'COPY...' command being slower because of the automatic quoting can I somehow tell PostgreSQL that the data is pre-quoted? Could the performance difference be something else? I doubt the issue is with

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in my program... any ideas why?

2005-12-21 Thread Kevin Brown
On Wednesday 21 December 2005 20:14, Stephen Frost wrote: * Madison Kelly ([EMAIL PROTECTED]) wrote: If the performace difference comes from the 'COPY...' command being slower because of the automatic quoting can I somehow tell PostgreSQL that the data is pre-quoted? Could the performance

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in

2005-12-21 Thread Luke Lonergan
@postgresql.org Sent: Wed Dec 21 21:03:18 2005 Subject: [PERFORM] MySQL is faster than PgSQL but a large margin in my program... any ideas why? Hi all, On a user's request, I recently added MySQL support to my backup program which had been written for PostgreSQL exclusively until now. What

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in my

2005-12-21 Thread Madison Kelly
Stephen Frost wrote: * Madison Kelly ([EMAIL PROTECTED]) wrote: If the performace difference comes from the 'COPY...' command being slower because of the automatic quoting can I somehow tell PostgreSQL that the data is pre-quoted? Could the performance difference be something else? I

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in

2005-12-21 Thread Madison Kelly
Luke Lonergan wrote: What version of postgres? Copy has been substantially improved in bizgres and also in 8.1. - Luke Currently 7.4 (what comes with Debian Sarge). I have run my program on 8.0 but not since I have added MySQL support. I should run the tests on the newer versions of both

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in

2005-12-21 Thread Luke Lonergan
Madison, On 12/21/05 10:58 PM, Madison Kelly [EMAIL PROTECTED] wrote: Ah, that makes a lot of sense (I read about the 'fsync' issue before, now that you mention it). I am not too familiar with MySQL but IIRC MyISAM is their open-source DB and InnoDB is their commercial one, ne? If so, then I

Re: [PERFORM] MySQL is faster than PgSQL but a large margin in

2005-12-21 Thread Luke Lonergan
Madison, On 12/21/05 11:02 PM, Madison Kelly [EMAIL PROTECTED] wrote: Currently 7.4 (what comes with Debian Sarge). I have run my program on 8.0 but not since I have added MySQL support. I should run the tests on the newer versions of both DBs (using v4.1 for MySQL which is also mature at