Re: MySQL InnoDB Performance vs Postgres
I added a primary key index on id which increased the performance from about 50 queries/sec to 155 queries/sec. That is a reasonable boost but still doesn't come close to the 250 queries/sec that postgres gets.
It is random which one of the two queries will return more rows. On average over a large set of queries, they should return about the same number of rows.
The table represents a relationship between users. Userid and friendid are both foreign keys of the id column in the users table.
This particular table will get new rows inserted into it and existing rows removed. Thus, we are using InnoDB to for crash recovery ability and general data integrity.
So I will try covering by adding a userid/status index and a friendid/status index and get the performance results from that. Are there other ways to improve this query? In general, will the performance of the query degrade as the table gets bigger?
Ram
Subject
Views
Written By
Posted
4704
July 20, 2005 03:42PM
2022
July 20, 2005 04:16PM
1983
July 20, 2005 05:12PM
2226
July 20, 2005 05:27PM
2147
July 20, 2005 07:57PM
2160
July 21, 2005 12:53PM
Re: MySQL InnoDB Performance vs Postgres
1979
July 24, 2005 11:36PM
2131
August 03, 2005 12:34PM
2118
July 21, 2005 05:37AM
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.