Parallelize SQL queries
This commit is contained in:
parent
86b4da1ec2
commit
c64762858e
178 changed files with 3377 additions and 3618 deletions
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { take } from 'lodash';
|
||||
import dataInterface from '../sql/Client';
|
||||
import { DataReader } from '../sql/Client';
|
||||
|
||||
type RecentEmojiObjectType = {
|
||||
recents: Array<string>;
|
||||
|
@ -11,7 +11,7 @@ type RecentEmojiObjectType = {
|
|||
let initialState: RecentEmojiObjectType;
|
||||
|
||||
async function getRecentEmojisForRedux() {
|
||||
const recent = await dataInterface.getRecentEmojis();
|
||||
const recent = await DataReader.getRecentEmojis();
|
||||
return recent.map(e => e.shortName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue