alixi
alixi13mo ago

is there a suggested convention for

is there a suggested convention for index names? (e.g. by_token_identifer vs. by_tokenIdentifer for an index on tokenIdentifier)
5 Replies
alixi
alixiOP13mo ago
just saw this example in the docs
No description
alixi
alixiOP13mo ago
so i'm guessing snake_case is preferred?
lee
lee13mo ago
The default index is called "by_creation_time" but your own indexes can use camelCase if you want; the framework has no preference
ian
ian12mo ago
for multi-field indexes (aka compound indexes) I like to delineate fields with underscores, so you could have by_highestScore_someOtherField whereas using underscores it becomes ambiguous where field boundaries are
alixi
alixiOP12mo ago
that makes sense!

Did you find this page helpful?