Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Performance Bug] app slows down as we use #195

Open
ghost opened this issue Sep 17, 2019 · 0 comments
Open

[Performance Bug] app slows down as we use #195

ghost opened this issue Sep 17, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 17, 2019

"After large amount of entering GMP data then App going to slow. Like when we enter CK ID for searching a child / Preg. mother then numbers are entering very slowly and in very big size which is taking time to enter and making the process slow. [....] after about 50 entries, the size of the number becomes very large and the process of saving the number in the text box takes a long time." - CK

Our investigation:

  • The slowness is caused by continuous usage of the app. Not by the amount of data in the device.
  • To reproduce the slowness I have to fill atleast 50 encounters. It is not feasible to do it manually. So added some hooks in code and automated it.
  • The following scenarios are done on emulator with 800 MB RAM, 2 CPUs.
  • Scenarios tried locally on 3.3:
  1. Through UI automation: Create Individual, Enrol into Pregnancy, Goto Home page, repeat 50 times.
    Not seeing any slowness.
  2. First sync 100 Pregnant women with most number of ProgramEncounters. Through UI automation: Goto Search page, Enter MyChi ID, Select Individual, Land on Dashboard, Goto Home page; repeat 50 times.
  3. Not seeing any slowness.
  • Scenarios tried locally on 3.2:
  1. First sync 100 Pregnant women with most number of ProgramEncounters and have atleast one non exited Pregnancy Prog. Through UI automation: Goto Search page, Enter MyChi ID, Select Individual, Land on Dashboard, Start new Visit, ANC GMP, Fill weight, Save, Land on Dashboard, Goto Home page; repeat 30 times.
    Not seeing any slowness.
  2. But, we could see that there is some memory leak.

See: realm/realm-js#505, realm/realm-js#465 and there are more issues related to this.

We tried to figure out where the memory issue was. Due to debugging limitations caused by realm, we are not able to view memory stats and pin point the cause. Right now If this problem happens mainly for the DataEntry operators we can ignore it as we are building the DataEntry App. If it is for field workers, we cannot do anything right now. Ask them to sync; reopen the app; regularly.

@ghost ghost changed the title Performance issues - followup work [Performance Bug][CK][Urgent] App is slow when entering GMP data Sep 17, 2019
@ghost ghost closed this as completed Sep 17, 2019
@ghost ghost reopened this Sep 17, 2019
@ghost ghost changed the title [Performance Bug][CK][Urgent] App is slow when entering GMP data [Performance Bug] app slows down as we use Sep 17, 2019
@vinayvenu vinayvenu moved this to New Issues in Avni Product Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

0 participants