#community-help

Efficiency in Key Name Sizing for Large Document Collections

TLDR Imtiaz asks if shorter key names impact storage and memory efficiency. Kishore Nallan explains key names don't impact memory but could slightly affect disk storage and retrieval times.

Powered by Struct AI

1

2
24mo
Solved
Join the chat
Oct 30, 2021 (25 months ago)
Imtiaz
Photo of md5-5c86b23fcf7d52313d7a346d8cc3e86b
Imtiaz
04:37 PM
Hi there, I have a question regarding key names in a document. I have a large collection and I am attempting to scale efficiently. I have stripped the keys down to just the minimum subset already.

My question is regarding the size of the key names. Would there be any benefit in calling a key n instead of full_name for example, and handle the mappings appropriately on the frontend. (interested in impact to storage and memory - as the network impacts are obvious but not important in my use case)?

Thanks!

1

Oct 31, 2021 (24 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:46 AM
👋 No impact on memory since key names don't repeat in memory. But we store the document on disk so disk storage will be lesser and so will be retrieval times. However, I don't see this making too much of a difference unless you have 100s of keys.