Issue with Hash Map Space and Performance

前端 未结 2 1672
长情又很酷
长情又很酷 2021-01-21 14:44

I have to store more than 100 millions of key-values in my HashMultiMap (key can have multiple values). Can anybody help me which one is faster for both storing and searching:

2条回答
  •  遥遥无期
    2021-01-21 15:12

    I'd recommend Redis. It's more of a data structure store than the others (e.g. it supports maps and sets) and requires very little effort to get started with. It's incredibly simple to use and has a great Java API.

    I'd start by looking at the functions here that allow you to associate a key with a group of values.

提交回复
热议问题