Document disadvantage of fetching messages without index
This commit is contained in:
parent
a4ecf1a9d6
commit
0c40f35623
1 changed files with 2 additions and 0 deletions
|
@ -238,6 +238,8 @@ const _fetchMessagesRequiringSchemaUpgrade =
|
|||
}));
|
||||
};
|
||||
|
||||
// NOTE: Named ‘dangerous’ because it is not as efficient as using our
|
||||
// `messages` `schemaVersion` index:
|
||||
const _dangerouslyFetchMessagesRequiringSchemaUpgradeWithoutIndex =
|
||||
({ connection, count, lastIndex } = {}) => {
|
||||
if (!isObject(connection)) {
|
||||
|
|
Loading…
Reference in a new issue