Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3380760
D5543.id18245.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
861 B
Referenced Files
None
Subscribers
None
D5543.id18245.diff
View Options
diff --git a/native/data/sqlite-context-provider.js b/native/data/sqlite-context-provider.js
--- a/native/data/sqlite-context-provider.js
+++ b/native/data/sqlite-context-provider.js
@@ -38,7 +38,10 @@
}
(async () => {
try {
- const threads = await commCoreModule.getAllThreads();
+ const [threads, messages] = await Promise.all([
+ commCoreModule.getAllThreads(),
+ commCoreModule.getAllMessages(),
+ ]);
const threadInfosFromDB = convertClientDBThreadInfosToRawThreadInfos(
threads,
);
@@ -46,7 +49,6 @@
type: setThreadStoreActionType,
payload: { threadInfos: threadInfosFromDB },
});
- const messages = await commCoreModule.getAllMessages();
dispatch({
type: setMessageStoreMessages,
payload: messages,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 1:57 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595428
Default Alt Text
D5543.id18245.diff (861 B)
Attached To
Mode
D5543: Run SQLite queries in parallel in SQLiteContextProvider
Attached
Detach File
Event Timeline
Log In to Comment