-
Type:
Story
-
Resolution: Unresolved
-
Priority:
High
-
Affects Version/s: None
-
STOP TB Sprint 12, STOP TB Sprint 13
Scale target: 100,000 records, scaling up to 1,000,000 records. Which record types count: [TBD/CLARIFICATION REQUIRED]
Background / Context
Beneficiary and household lists are core screens and must open reliably as data grows.
Problem Statement
- Lists take a long time to open, particularly with a large number of records.
- The app may become unresponsive or crash while opening these lists.
- A failed load shows a blank screen with no option to try again.
Current Behaviour
Slow loads, possible crashes, and a blank screen with no retry on failure.
Expected Behaviour / Requirement
- Display available records quickly instead of waiting for the entire list to load.
- Improve search and filtering.
- Provide a clear error message and a retry option when loading fails.
User Story
As a field user, I want large lists to open quickly and recover from failures so that I'm never stuck on a blank screen.
Acceptance Criteria
- Given 100k to 1M records, when a list is opened, then records appear quickly (threshold [TBD/CLARIFICATION REQUIRED]).
- Given a large list, when it is opened, then the app does not crash.
- Given search or filters, then results are accurate.
- Given the user scrolls, then there are no unnecessary delays.
- Given a list fails to load, then an appropriate error message and a "Try Again" option are displayed.
Business Rules / Validations
Search and filter accuracy must be the same as today.
Dependencies
Responsiveness story, benchmarks story.
Impact / Affected Areas
Beneficiary lists, household lists, search and filters.
Out of Scope
Sync behaviour (covered in the data syncing story).
QA / Testing Considerations
Test on low-end devices at 100k and 1M records. Simulate a load failure and retry.
Open Questions / Clarifications
- Exact error message wording?
- Maximum supported list size on target devices?