0

When using ChronicleMap, you have to give an average value size and an entries estimate. With a growing (albeit slowly) data set, how do people automate this? Is there a different way of using ChronicleMap without having to give size hints? Correctly sizing the maps on startup would need to be automated, and I am wondering how people solve this problem.

val pictures: MutableMap<String, PictureArticleResponse> =
        ChronicleMapBuilder.of(String::class.java, PictureArticleResponse::class.java)
            .valueMarshaller(KryoMarshaller(PictureArticleResponse::class))
            .entries(1204245)
            .averageKeySize(7.869052393823516)
            .averageValueSize(110.06098592894303)
            .create()
rrva
  • 190
  • 1
  • 8

0 Answers0