I have read that MyISAM is much faster for SELECT's. I'm building web site for car classifieds so i have a database with 80 000 listings for testing.
I'm running the next query
SELECT
a.id as post_id,title,price,c.car as make,m.model as model,pl.place as place,km,year,e.engine as engine,
d.drivetrain as drivetrain,car_condition,category,vip,description
FROM
(SELECT * FROM posts WHERE type=1 ORDER BY vip DESC,make,model,price LIMIT '.$page.',20) AS a
JOIN _models AS m ON m.id=a.model
JOIN _cars AS c ON c.id=a.make
JOIN _places AS pl ON pl.id=a.place
JOIN _engine AS e ON e.id=a.engine
JOIN _drivetrain AS d ON d.id=a.drivetrain
Table posts has 80 000 rows and the others are small (nomenclatures) 20-100 rows
So with MyISAM the query runs for 0.3 seconds, but when i use InnoDB the query runs much faster (0.002 to 0.008 seconds)
Is it InnoDB faster or just in my case is faster but something else will go wrong.
What is the catch here :)
I'm running the next query
SELECT
a.id as post_id,title,price,c.car as make,m.model as model,pl.place as place,km,year,e.engine as engine,
d.drivetrain as drivetrain,car_condition,category,vip,description
FROM
(SELECT * FROM posts WHERE type=1 ORDER BY vip DESC,make,model,price LIMIT '.$page.',20) AS a
JOIN _models AS m ON m.id=a.model
JOIN _cars AS c ON c.id=a.make
JOIN _places AS pl ON pl.id=a.place
JOIN _engine AS e ON e.id=a.engine
JOIN _drivetrain AS d ON d.id=a.drivetrain
Table posts has 80 000 rows and the others are small (nomenclatures) 20-100 rows
So with MyISAM the query runs for 0.3 seconds, but when i use InnoDB the query runs much faster (0.002 to 0.008 seconds)
Is it InnoDB faster or just in my case is faster but something else will go wrong.
What is the catch here :)