Index Key Size Limit Increase

27 views
Skip to first unread message

Jake Dempsey

unread,
Feb 13, 2015, 7:24:19 PM2/13/15
to mongod...@googlegroups.com
Currently we are storing large trees that require fast writes and are using the Materialized Path approach which stores the path for each node in a field that is indexed and searched using regex.  This approach is great for fast reads and writes which is what we need.  We have already tried taking a nested set approach but the amount of writes and thrashing that occurs for reparenting is extremely slow.

We like our current approach with the materialized path, but we will soon be bumping into the limit of a indexed field size of 1014bytes.  Is there a way to increase this limit or is it being increased for Mongo 3.0

Jake Dempsey

s.molinari

unread,
Feb 15, 2015, 7:12:13 AM2/15/15
to mongod...@googlegroups.com
Hey Jake,

Isn't the limit of 1024 bytes for the index key and not the field data/ value itself? Like, "path" is your key and it shouldn't ever change, so you are fine and dandy with not hitting that limit? I asked as a question, because I am not certain myself.:-)

Scott
Reply all
Reply to author
Forward
0 new messages