Getting the current state requires reading the whole DB

Bug #1414960 reported by Alberto Mardegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trust-store
New
Wishlist
Thomas Voß

Bug Description

If a client wants to read the current state of all the applications registered in the store (like the Ubuntu System Settings security panel does) then it currently needs to read the whole DB, which also includes historical data.
The same applies to a client which want to get the state of a single application, if it doesn't know in advance which features are used by this store.

Possible solutions:
1) Discard the historical data: create a constraint on the uniqueness of the request's from+feature field combination, so that every record retrieved from the DB contains actual information.
2) Create a new API which only retrieves the latest records (= whose information is not obsoleted) and keep the existing API available for retrieving the historical data.

Personally, I think that having a timestamp on the request is enough information and the full history of the decisions is not required.

Changed in trust-store:
importance: Undecided → Wishlist
assignee: nobody → Thomas Voß (thomas-voss)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.