Feature #2920

Keep a current metadata parsing in cache

Added by Ema Nymton about 4 years ago. Updated about 4 years ago.

Status:FixedStart date:11/24/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

0%

Category:User interface
Target version:5.0

Description

My main movie directory contains 400 movies. It takes a while for my PS3 to parse its metadata (movie title + cover).
That parsing is discarded when exiting a directory and going to a parent one.

Would it be possible to keep a given parsing in memory rather than discarding it?

Note: this doesn't apply when navigating into a child directory. Parsing is properly kept.

Associated revisions

Revision fe70773c
Added by Andreas Smas about 4 years ago

ps3: Use lwmutexes for faster locking

refs #2920

Change included in version 4.99.478

Revision 43b4f3ab
Added by Andreas Smas about 4 years ago

Update to sqlite 3.9.2

refs #2920

Change included in version 4.99.480

Revision 322fcf24
Added by Andreas Smas about 4 years ago

metadb: Create index on parentid

refs #2920

Change included in version 4.99.482

History

#1 Updated by Andreas Smas about 4 years ago

  • Status changed from New to Need feedback
  • Target version set to 5.0

It should cache this.

Please turn on Metadata debugging in settings:dev and attach a log file when entering the directory, going back and entering again.

#3 Updated by Andreas Smas about 4 years ago

According to the log the metadata is in the sqlite cache for sure but it's still a bit slow.

I've tried to fix various stuff related to this but I don't have as big database as you do so i'm not 100% sure what effect it has, please check with 4.99.482 and report back.

#4 Updated by Ema Nymton about 4 years ago

Bug resolved. Thanks. Initial parsing is a tad faster (maybe 10% faster?). I can also confirm that when leaving and entering the directory again, caching is used (it takes about 2 seconds to retrieve the metadata and the HDD LED doesn't blink).

Mission accomplished :)
You're a really talented coder!

#5 Updated by Andreas Smas about 4 years ago

  • Status changed from Need feedback to Fixed

Ah, great to hear this, and thanks :-)

Also available in: Atom PDF