frank b59f1d3849
fix_: chats and message history loading after login takes too much time (#5932)
* fix_: chats and message history loading after login takes too much time

* chore_: split to small functions to writing unit test easily

* test_: add test

* chore_: improve OldestMessageWhisperTimestampByChatIDs function

- Use 'any' type instead of 'interface{}' for args slice
- Add error check after rows iteration

* chore_: optimize OldestMessageWhisperTimestampByChatIDs query

This commit simplifies and optimizes the SQL query in the OldestMessageWhisperTimestampByChatIDs function. The changes include:

1. Removing the subquery and ROW_NUMBER() function
2. Using MIN() and GROUP BY instead of the previous approach
3. Directly selecting the required columns in a single query

These changes should improve the performance of the function, especially for large datasets, while maintaining the same functionality.
2024-10-18 10:25:34 +08:00
2024-09-26 09:10:59 +01:00
2023-01-13 17:52:03 +00:00
2024-09-27 06:37:32 +08:00
2022-03-28 13:14:12 +01:00
2022-03-28 13:14:12 +01:00
2024-09-27 06:37:32 +08:00
2024-09-27 06:37:32 +08:00
2021-07-20 10:57:38 +02:00
2024-09-27 06:37:32 +08:00
2024-09-27 06:37:32 +08:00
2024-09-27 16:02:18 +01:00
2024-09-27 06:37:32 +08:00
2024-09-27 06:37:32 +08:00
2024-09-27 06:37:32 +08:00
2024-09-27 06:37:32 +08:00
2024-09-27 06:37:32 +08:00
2024-10-07 13:07:33 +01:00
2024-04-18 18:48:02 +02:00
2024-03-20 20:38:24 +00:00
2024-04-10 11:43:13 +01:00
Description
The Status module that consumes go-ethereum
https://status.im
Readme
Languages
Go 98.4%
Python 0.9%
Shell 0.4%
Makefile 0.1%
Groovy 0.1%