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
4613
July 20, 2005 03:42PM
1989
July 20, 2005 04:16PM
1954
July 20, 2005 05:12PM
2190
July 20, 2005 05:27PM
2119
July 20, 2005 07:57PM
2116
July 21, 2005 12:53PM
Re: MySQL InnoDB Performance vs Postgres
1953
July 24, 2005 11:36PM
2104
August 03, 2005 12:34PM
2090
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.