You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getUnboundCollectionContext() takes a parameter includeIndex to decide whether to include index to the collection context or not. Having a collection context without all the indexes could be useful, #137. But, this function also deals with the metadata cache. Even though the current caller doesn't care about indexes future callers might, as this function caches the context even the future callers wouldn't see the indexes. This is very bad for index consistency. We should just remove includeIndex parameter altogether and the caller can always make a copy of collection context and do anything they want to that copy.
The text was updated successfully, but these errors were encountered:
…ays include indexes.
getUnboundCollectionContext() should always return context with indexes
included.
As this function plays with cache, its good to not play with how it
creates collection context. Instead client of this function can make a
copy and do anything with it. Otherwise, we will find interesting
inconsistencies in the metadata cache.
getUnboundCollectionContext()
takes a parameterincludeIndex
to decide whether to include index to the collection context or not. Having a collection context without all the indexes could be useful, #137. But, this function also deals with the metadata cache. Even though the current caller doesn't care about indexes future callers might, as this function caches the context even the future callers wouldn't see the indexes. This is very bad for index consistency. We should just removeincludeIndex
parameter altogether and the caller can always make a copy of collection context and do anything they want to that copy.The text was updated successfully, but these errors were encountered: