It is very interesting this question would come up because a similar question was asked back in January 2011 ( When is the right time to use MariaDB instead of MySQL, and Why? ). Giving thought to that 16-month-old question and how I answered it in April 2011, here are my answers to your immediate questions:
Why still using MyISAM ?
MyISAM still has features that are unique and useful for small datasets and read slaves in HA setups
To changes storage engine from MyISAM to Maria should it be a problem? (lose index or something)
If you mysqldump the data and the schema into two separate files, you can always import data into table with either the MyISAM or Aria storage engines. Just keep around the data only mysqldump to be sure.
There are maybe several hundred writes a day, versus the tens of thousands of reads. My databases are located on an SSD drive.
Based on this statement, let's play with some numbers. Lets's say there are 500 writes a day and 20,000 reads a day. That computes out to the following
- 97.56% reads per day
- 2.44% writes per day
- 40 reads / write
As much as I love InnoDB, I would have to choose MyISAM in this case for several reasons
REASON #1
You only have 150MiB of MyISAM tables (70MiB Data, 80 MiB Indexes)
REASON #2
InnoDB indexes tend to get very bloaty because Secondary Indexes have keys into the Clustered Index. This always results in a double index lookup. This can be overlooked with large, write-heavy datasets.
REASON #3
InnoDB tablespaces tend to get very bloaty because of MVCC being created and discarded without an automatic reclaiming of disk space:
All this can be avoid with MyISAM
REASON #4
InnoDB protects individual rows by performing MVCC for transaction control. The overhead generated for reads in a day would probably be greater than 150 MiB.
I can probably name 2 or 3 more reasons, but let's cut to the chase: Is there anything that can improve performance for MyISAM in your case? Why, yes there is.
Your said the following
The table is about 260k rows in size, with 28 fields which for the most part is varchars and ints
If you have many varchars, there is something you can do to increase read/write performance. For any MyISAM table mydb.mytable
: run this command:
ALTER TABLE mydb.mytable ROW_FORMAT=Fixed;
What will this do, this will treat all VARCHARs as CHARs. Every row will be the exact same length. This will increase disk space 80%-100%. In your case, let's assume it doubles your 150 MiB MyISAM table to 300 MiB. Where is the benefit? Your MyISAM table can now be read/written anywhere from 20% - 30% faster without changing anything else I learned that from pages 72,73 from MySQL Database Design and Tuning.
I have written about this in the past:
Best Answer
As for now
And as you can see that it is written in https://mariadb.com/kb/en/cache-index/ so that it would be more like the MyISAM, but as development and theory grows in time, we will see and wait, what they actually want to do qand implement.