Media is reindexed each time backend is started
Bug #236474 reported by
Joshua Scotton
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Entertainer Media Center |
Fix Released
|
High
|
Paul Hummer |
Bug Description
Media is reindexed each time the backend is started.
The desired behaviour should be the backend just checking for changes to the existing index of movies, music etc.
Related branches
lp:~rockstar/entertainer/storm-backend
- Joshua Scotton: Approve
- Matt Layman: Approve
Changed in entertainer: | |
assignee: | nobody → rockstar |
importance: | Undecided → High |
status: | New → Triaged |
Changed in entertainer: | |
milestone: | none → entertainer-0.2 |
Changed in entertainer: | |
status: | Triaged → In Progress |
Changed in entertainer: | |
milestone: | entertainer-0.2 → none |
Changed in entertainer: | |
milestone: | entertainer-0.3 → none |
status: | In Progress → Triaged |
milestone: | none → entertainer-0.3 |
status: | Triaged → In Progress |
Changed in entertainer: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think it's important that I document on this bug where we are with this process. The ImageCache work is completed on the backend, and just needs a bit more forward porting on the frontend. However, I now have more than a deep understanding of why exactly it re-indexes everything. There are a few reasons for this:
1) When calling update on the old data model, it deleted everything and reindexed everything. er.rebuild* Cache is called which deletes and re-creates this.
2) On each startup, MediaCacheManag
The fix is actually a lot more trivial than I was expecting it to be. I plan on fixing this after all the cache classes have been ported to the new data model.
As a side note, tracking this down was nice, because it clearly laid out an upgrade path for new iterations of the data model. We can harness this same concept to trigger when a table needs to be rebuilt with a new structure. Blessing in disguise (and, I'm starting to think, was the original idea behind this constant re-indexing).