Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3393914
D5543.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.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
Sun, Dec 1, 4:25 PM (20 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2605563
Default Alt Text
D5543.diff (861 B)
Attached To
Mode
D5543: Run SQLite queries in parallel in SQLiteContextProvider
Attached
Detach File
Event Timeline
Log In to Comment