perf: reduce DB calls during sync with caching and batching (#2316)

* perf: reduce DB calls during sync with caching and batching

* refactor: clean up comments and improve LID-PN mapping storage during history sync
This commit is contained in:
João Lucas
2026-02-05 11:06:15 -03:00
committed by GitHub
parent ffc019fb51
commit fa2a837a4a
4 changed files with 113 additions and 41 deletions
+1
View File
@@ -27,6 +27,7 @@ export type BaileysEventMap = {
chats: Chat[]
contacts: Contact[]
messages: WAMessage[]
lidPnMappings?: LIDMapping[]
isLatest?: boolean
progress?: number | null
syncType?: proto.HistorySync.HistorySyncType | null