CouchDB 2/3 allows partition databases, using this will allow to have namespaces lookups as fast as main index lookups,
We added a new class method for a Dolly Document such as
class MyDocument < Dolly::Document
partitioned!
end
This will change the pattern for _id to be namespace:ID instead of namespace/ID
It will also raise an exception if the DB is not partitioned, so for 1.x will always raise this exception.
The exception will raise when the class is loaded, so depending on the env, can be on app start.
CouchDB 2/3 allows partition databases, using this will allow to have namespaces lookups as fast as main index lookups,
We added a new class method for a Dolly Document such as
This will change the pattern for
_id
to benamespace:ID
instead ofnamespace/ID
It will also raise an exception if the DB is not partitioned, so for 1.x will always raise this exception. The exception will raise when the class is loaded, so depending on the env, can be on app start.