Mysql Concept

  1. How to figure out if mysql index fits entirely in memory ?
  2. MySQL – why not index every field?
    Indexes take up space in memory (RAM); Too many or too large of indexes and the DB is going to have to be swapping them to and from the disk. They also increase insert and delete time (each index must be updated for every piece of data inserted/deleted/updated).

    Keep in mind that every index must be updated any time a row is updated, inserted, or deleted. So the more indexes you have, the slower performance you’ll have for write operations.

    Also, every index takes up further disk space and memory space (when called), so it could potentially slow read operations as well (for large tables). Check this out

    B+ Tree – Read the comment section as well.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s