isar / isar/hive

[Question] Performance single big list vs key per item

Open
#482 2 comments 2 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
I have a question about performance.
I have a list of up to 50000 items.
The list is read a lot but nearly never written.
My question is:
Is there a performance difference if I save the list as one big list with one key and load it into memory before accessing it vs storing each item with a key and use the „get“ function?
I need to access the items by key only.

TLDR: how much slower are read operations if the box has a lot of keys compared to accessing the list from memory? Is it negligible?
What impacts performance of box reads in general?

**Version**
- Platform: Android
- Flutter version: 1.22.3
- Hive version: 1.4.4

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.