Unrelated data
#474
-
Is it best to store unrelated data in separate instances/files of TinyDB? |
Beta Was this translation helpful? Give feedback.
Answered by
msiemens
May 23, 2022
Replies: 1 comment
-
That depends. Personally I'd most probably use separate tables for unrelated data because otherwise I'd have to juggle multiple TinyDB instances in parallel. But splitting data into separate files could (at least in theory) improve performance for large datasets as writing one dataset doesn't require also writing the other dataset. But if performance is such a concern that things like this make a big difference you're probably reaching the limits of TinyDB 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jcphlux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That depends. Personally I'd most probably use separate tables for unrelated data because otherwise I'd have to juggle multiple TinyDB instances in parallel. But splitting data into separate files could (at least in theory) improve performance for large datasets as writing one dataset doesn't require also writing the other dataset. But if performance is such a concern that things like this make a big difference you're probably reaching the limits of TinyDB 🙂