Parallelize SQL queries
This commit is contained in:
parent
86b4da1ec2
commit
c64762858e
178 changed files with 3377 additions and 3618 deletions
|
@ -5,6 +5,7 @@ import PQueue from 'p-queue';
|
|||
import { batch } from 'react-redux';
|
||||
|
||||
import type { MessageAttributesType } from '../model-types.d';
|
||||
import { DataReader } from '../sql/Client';
|
||||
import { deletePackReference } from '../types/Stickers';
|
||||
import { isStory } from '../messages/helpers';
|
||||
import { isDirectConversation } from './whatTypeOfConversation';
|
||||
|
@ -93,10 +94,7 @@ async function cleanupStoryReplies(
|
|||
parentConversation && !isDirectConversation(parentConversation.attributes)
|
||||
);
|
||||
|
||||
const replies = await window.Signal.Data.getRecentStoryReplies(
|
||||
storyId,
|
||||
pagination
|
||||
);
|
||||
const replies = await DataReader.getRecentStoryReplies(storyId, pagination);
|
||||
|
||||
const logId = `cleanupStoryReplies(${storyId}/isGroup=${isGroupConversation})`;
|
||||
const lastMessage = replies[replies.length - 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue