-
Notifications
You must be signed in to change notification settings - Fork 0
Design Concerns
jetheis edited this page Mar 20, 2012
·
1 revision
- SQLite latency was a big problem in the prototype. (The whole list was saved to the SQLite db upon leaving the screen. This results is long latency when switching screens. I need to rewrite it to use atomic db operations: when individual items are added, deleted, or changed, the db is updated immediately.
- Each item must store its index in each of two contexts: stockOrder and shopOrder. These will be used to position each element in the respective array lists. [TODO: check latency on this]
- Add a button to the make-a-list screen for testing: Will load my ~70 items from a fixed "raw" .csv spreadsheet hardcoded in the app.
- To support multiple lists:
- Should I just add a database key for the list name, and use a cursor to only get those that have that key? How does this affect db latency?
- Or should I have a separate table for each list? One table that maps strings to tables, then one table for each list?
- What’s the latency penalty for accessing the items out of order in the DB?
- Should the DB adapter be a singleton class, that is, since there’s only 1 database, all Activities share it?
- Need to persist the list of store names from one run to another (use array of Strings in SharedPreferences). Since shared prefs only store primitives, and not lists, should I store a single string with funky delimiter characters (e.g., ` and tabs)
- There are no help screens. Should there be one, so I can give instructions like, "Press an item to edit it, long press to delete it"?