I found a lot of information on how indexes works in MySQL by looking at the following SO link: How do MySQL indexes work? However, I am facing a mysql
issue I can not resolve, and I'm unsure whether it is related to indexing or not.
The problem is: I used multiple indexes in most of my tables, and everything seems to be working fine. However, when I restore the old back up data to my existing data, the size of the db keeps getting larger (it almost doubles each time).
Example: I was using a mysql db named DB1
last week, I made a backup and continued to use DB1
. A few days later, I needed to continue from that backup db, so I restored it to DB1
.
Before the restore, DB1
's size was 115MB
, but afterward it was suddenly 350MB
.
Can anyone help shed some light on what might be happening?