When should I consider using a in memory database and what are the issue to look out for?

前端 未结 9 2038
一整个雨季
一整个雨季 2021-02-05 03:58

I was just think that now it is common to have enough RAM on your database server to cache your complete database why are the specialist in memory database (e

9条回答
  •  醉梦人生
    2021-02-05 04:32

    The trend seems to be to cache aggressively and use the database to populate the cache. Regardless of where the database lives, joins are still expensive so the preference seems to be to do the join once and cache the result in something like Memcached or Velocity.

    There are still in-memory databases around and they are used, but it depends upon the context you want to use them. SQLite for example is often used as an in-memory database when testing data layers.

提交回复
热议问题