The Status module that consumes go-ethereum https://status.im
Go to file
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
.dependabot Patch/dependabot protocol (#1980) 2020-05-19 00:14:02 +01:00
.github ci_: validate pr title (#5872) 2024-09-26 09:10:59 +01:00
.vscode feat(wallet) implement Wallet Connect sign APIs 2023-11-15 15:52:02 +01:00
_assets refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
_docs chore_: rename integration tests to functional tests (#5908) 2024-10-03 14:51:51 +01:00
_examples chore_: drop wakuv2 fleets, use waku fleets 2024-05-17 18:53:40 +02:00
abi-spec Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
account Removed unused ParseLoginParams and newErrZeroAddress functions 2024-03-20 10:12:49 +00:00
api chore(wallet)_: remove unused upstream client (#5934) 2024-10-11 21:01:14 +04:00
appdatabase chore(wallet)_: remove unused upstream client (#5934) 2024-10-11 21:01:14 +04:00
appmetrics fix(tests): moved test db setup to a common place 't/helpers', created 2023-08-18 09:00:56 +02:00
build/bin add .gitkeep to build/bin so it always exists 2019-03-05 14:22:00 +01:00
centralizedmetrics feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
circuitbreaker feat_: RPC providers detailed statuses #5923 (#5924) 2024-10-15 19:59:17 +04:00
cmd chore(wallet)_: remove unused upstream client (#5934) 2024-10-11 21:01:14 +04:00
common feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
config chore_: bump go-waku with filter loop fix (#5909) 2024-10-10 17:03:36 +05:30
connection Address linter issues 2022-03-28 13:14:12 +01:00
constants feat_: accounts/saved addresses capacity related api endpoints added 2024-08-06 08:19:33 +02:00
contracts refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
db Address linter issues 2022-03-28 13:14:12 +01:00
deprecation fx: deprecate profile and timeline chats (#3809) 2023-08-03 17:16:11 +03:00
discovery feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
errors chore_: map insufficient funds error 2024-08-28 08:23:18 +02:00
eth-node feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
exchanges URL unfurling (initial implementation) (#3471) 2023-05-18 15:43:06 -03:00
exportlogs Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
extkeys Upgrade geth 2021-07-20 10:57:38 +02:00
healthmanager feat_: RPC providers detailed statuses #5923 (#5924) 2024-10-15 19:59:17 +04:00
images fix(wallet)_: Fix handling of remote image URLs in image processing 2024-08-14 12:50:10 +02:00
ipfs feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
logutils feat_: Implement request logging functionality (#5812) 2024-09-13 16:08:20 +01:00
mailserver refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
metrics feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
mobile feat(cmd)_: `status-backend` (#5847) 2024-09-27 16:02:18 +01:00
multiaccounts refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
nix ci_: add go-generate-fast to nix (#5890) 2024-09-30 12:53:20 +01:00
node feat_: RPC providers detailed statuses #5923 (#5924) 2024-10-15 19:59:17 +04:00
nodecfg chore(wallet)_: remove unused upstream client (#5934) 2024-10-11 21:01:14 +04:00
notifier Notifier package to interact with gorush notifications (#910) 2018-05-08 16:30:03 +02:00
params chore(wallet)_: remove unused upstream client (#5934) 2024-10-11 21:01:14 +04:00
peers feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
postgres fix_: enable tests to run with `-count` more than 1 (#5757) 2024-08-23 19:30:58 +00:00
profiling feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
protocol fix_: chats and message history loading after login takes too much time (#5932) 2024-10-18 10:25:34 +08:00
rpc feat_: RPC providers detailed statuses #5923 (#5924) 2024-10-15 19:59:17 +04:00
rtt feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
scripts nix: Updating Nix Shell and Makefile to use nix-shell 2024-04-09 12:49:06 +03:00
server fix(sync)_: sync fallback notification (#5888) 2024-10-07 22:05:37 +08:00
services feat_: RPC providers detailed statuses #5923 (#5924) 2024-10-15 19:59:17 +04:00
signal chore_: improvements of the sending route generated by the router process 2024-10-01 14:30:33 +02:00
sqlite fix: close messenger's databases in tests 2023-11-28 20:59:25 +01:00
static refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
t refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
telemetry feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
tests-functional test_: a little bit of refactoring 2024-10-14 12:47:58 +02:00
timesource feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
transactions feat_: RPC providers detailed statuses #5923 (#5924) 2024-10-15 19:59:17 +04:00
vendor chore_: bump go-waku with filter loop fix (#5909) 2024-10-10 17:03:36 +05:30
waku fix_: remove waku go generate instructions as unused (#5892) 2024-09-30 17:47:39 +01:00
wakuv2 chore_: bump go-waku with filter loop fix (#5909) 2024-10-10 17:03:36 +05:30
walletdatabase refactor_: remove generated files from source control (#5878) 2024-10-03 20:59:44 +01:00
.codeclimate.yml This PR (status-go) fixes #12821 (#4516) 2024-01-08 10:18:57 -08:00
.codecov.yml feat_: functional tests coverage (#5805) 2024-09-24 16:33:26 +01:00
.dockerignore fix(ci)_: lock Go at 1.20 and Alpine at 3.18 2024-05-20 08:25:49 +02:00
.gitignore fix_: delete endpoints file (#5922) 2024-10-07 13:07:33 +01:00
.golangci.yml chore_: bump go to 1.20 (#5027) 2024-04-18 18:48:02 +02:00
.travis.yml Remove Ropsten and Rinkeby test networks 2022-10-24 14:17:46 +02:00
BOOTNODE.md docs: clarify purpose and describe ports 2020-02-06 18:44:23 +01:00
CMakeLists.txt dev: allow option to force compiling for apple silicon 2022-06-30 09:42:19 +02:00
CONTRIBUTING.md chore_: rename integration tests to functional tests (#5908) 2024-10-03 14:51:51 +01:00
LICENSE.md Create LICENSE.md 2016-09-21 10:00:29 +08:00
MAILSERVER.md rcp.sh: curl wrapper for easier RPC calls 2021-08-24 11:23:25 +02:00
Makefile chore(Makefile)_: generate before run status backend (#5954) 2024-10-16 21:43:51 +03:00
README.md Added test policy 2024-03-20 20:38:24 +00:00
RELEASING.md chore_: Add tag-version command 2024-04-10 11:43:13 +01:00
WAKU.md Create WAKU.md with spec support (#1855) 2020-02-21 17:56:15 +08:00
default.nix nix: Updating Nix Shell and Makefile to use nix-shell 2024-04-09 12:49:06 +03:00
go.mod chore_: bump go-waku with filter loop fix (#5909) 2024-10-10 17:03:36 +05:30
go.sum chore_: bump go-waku with filter loop fix (#5909) 2024-10-10 17:03:36 +05:30
shell.nix nix: Updating Nix Shell and Makefile to use nix-shell 2024-04-09 12:49:06 +03:00