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 =
|
const _dangerouslyFetchMessagesRequiringSchemaUpgradeWithoutIndex =
|
||||||
({ connection, count, lastIndex } = {}) => {
|
({ connection, count, lastIndex } = {}) => {
|
||||||
if (!isObject(connection)) {
|
if (!isObject(connection)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue