Page MenuHomePhabricator

Manually run database housekeeper cleanup task
Open, LowPublic

Description

Background
See https://phabricator.wikimedia.org/T334759#8794589

To improve app launch times, we could perform a one-time database housekeeper cleanup task call upon app launch.

Task
I suggest we show the migration "loading" animation in case it takes a while. We should take care that it can continue cleaning up where it left off in case the user backgrounds or terminates during this.

We should also maybe perform this cleanup task when the user taps "Clear cache" in app Settings

LOE
Estimated time: 1 week

Design Review Instructions

Possible Risks

Test Plan
Provide a way for QA to populate local database with a huge amount of explore feed data and articles. Use exported user libraries for data population ideas. Then have QA update with build and confirm they see updating animation with progress bar.

Event Timeline

JTannerWMF subscribed.

We will see how the other tasks related to this one resolves the performance issues, and depending on the outcome we will raise the priority and bring it into the release board.

@JTannerWMF this was one of the tickets I proposed for performance next steps. I'll make the other one before our 1-on-1.

Just a heads up - so far in my testing with big data dumps, a giant database of Explore feed data is not causing perceivable additional load time (now that we've maxed out the Explore feed cards at 30 days). So I don't think this ticket is worth doing right now. I'm going to do a little bit more testing to be sure, then lower the priority and move back to the backlog. I have found more likely causes of our recent performance issues (see T337073).

Tsevener lowered the priority of this task from Medium to Low.