Closed petmongrels closed 6 months ago
Vivek replied upto a minute
Some of the Cases to test:
Can you measure how long it taking you. It will finish.
On Thu, Feb 22, 2024, 3:42 PM AchalaBelokar @.***> wrote:
- I login with @.***_kids and then set a fast sync and then upgrade the app. I started upgrading and then it is sowing mw upgrading data please do not close the app. 3.21 to 3.38 still showing this msg.
- After killing the app same message is showing for long time.
— Reply to this email directly, view it on GitHub https://github.com/avniproject/avni-client/issues/1309#issuecomment-1959116471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZ3C73QV76YEKXRHT5U7DYU4KYRAVCNFSM6AAAAABDQSZOVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJZGEYTMNBXGE . You are receiving this because you were mentioned.Message ID: @.***>
It will be better perhaps to implement a progress bar on upgrade screen and similar on fast sync restore. Other wise it may cause lot of confusion. Keep awake may be required if not there
On Fri, Feb 23, 2024, 9:00 AM Vivek Singh @.***> wrote:
Can you measure how long it taking you. It will finish.
On Thu, Feb 22, 2024, 3:42 PM AchalaBelokar @.***> wrote:
- I login with @.***_kids and then set a fast sync and then upgrade the app. I started upgrading and then it is sowing mw upgrading data please do not close the app. 3.21 to 3.38 still showing this msg.
- After killing the app same message is showing for long time.
— Reply to this email directly, view it on GitHub https://github.com/avniproject/avni-client/issues/1309#issuecomment-1959116471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZ3C73QV76YEKXRHT5U7DYU4KYRAVCNFSM6AAAAABDQSZOVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJZGEYTMNBXGE . You are receiving this because you were mentioned.Message ID: @.***>
Yeah agreed it will be good to show progress bar else users might think the app is stuck.
113k ProgEnc in all cases.
`select count() from individual i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.observations); -- 14255 select count() from program_encounter i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.observations); -- 786550 select count() from program_encounter i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.cancel_observations); -- 18670 select count() from program_enrolment i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.observations); -- 12023 select count() from program_enrolment i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.program_exit_observations); -- 2624 select count() from encounter i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.observations); -- 46860 select count() from encounter i join address_level on i.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.cancel_observations); -- 0 select count() from checklist_item i join checklist on i.checklist_id = checklist.id join program_enrolment on checklist.program_enrolment_id = program_enrolment.id join address_level on program_enrolment.address_id = address_level.id and address_level.title = '1' cross join lateral jsonb_object_keys(i.observations); -- 18828
-- 14255+786550+18670+12023+2624+0+18828 = 852950`
avni/db$ ls -ltS total 1544328 -rw-r--r--@ 1 vsingh staff 312098816 Feb 26 13:21 default.7.0.without.compact.realm -rw-r--r--@ 1 vsingh staff 187318272 Feb 26 13:21 default.6.1.without.compact.realm -rw-r--r--@ 1 vsingh staff 185421824 Feb 26 13:58 default.6.1.with.compact.realm -rw-r--r--@ 1 vsingh staff 102535168 Feb 26 13:44 default.7.0.with.compact.realm
Shouldn't we compact only when there is lot of unused space in the file.? https://www.mongodb.com/docs/realm/sdk/react-native/realm-files/compact-realm/#realm-configuration-file
Deleted fast-sync file, fresh sync should work now.
@petmongrels how long does it take for large databases to complete migration?