node.js - Index optimizations for redundant data? -


i'm storing same tags: ['hello', 'world'] in multiple documents indexed.

does make sense use external mapping: tags: { hello: 1, world: 2 } resolved on client in favor of reduced index space , size of tags on disk?

essentially, client side compression mapping pulled static config file.

if storage space concern, using small field names , values whenever possible possible advantage. surmised reduce amount of data stored on disk. assuming client can handle mapping long term (and can handle maintenance of mappings) cannot see disadvantages.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -