Document disadvantage of fetching messages without index

This commit is contained in:
Daniel Gasienica 2018-03-29 13:12:18 -04:00
parent a4ecf1a9d6
commit 0c40f35623

View file

@ -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)) {