Parallelize SQL queries
This commit is contained in:
parent
86b4da1ec2
commit
c64762858e
178 changed files with 3377 additions and 3618 deletions
|
@ -2,6 +2,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as log from '../logging/log';
|
||||
import { DataReader } from '../sql/Client';
|
||||
import type { MessageAttributesType } from '../model-types.d';
|
||||
import * as Errors from '../types/errors';
|
||||
import type { MessageModel } from '../models/messages';
|
||||
|
@ -16,7 +17,7 @@ export async function __DEPRECATED$getMessageById(
|
|||
|
||||
let found: MessageAttributesType | undefined;
|
||||
try {
|
||||
found = await window.Signal.Data.getMessageById(messageId);
|
||||
found = await DataReader.getMessageById(messageId);
|
||||
} catch (err: unknown) {
|
||||
log.error(
|
||||
`failed to load message with id ${messageId} ` +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue