home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
VideoDatabase Optimalisation (don't use path in lookup)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Inker" data-source="post: 81768" data-attributes="member: 10541"><p>If I understand correctly that would be my solution #2.</p><p></p><p>As you mentioned it will only work if the path is already in the db. Not good. Add it if it isn't in.</p><p>You update the pathID for every file each time you browse a folder....not good because it will be slow (and unnessarily so). Doing it while browsing a folder with 200 items will probably kill performace. Why don't you add a few lines of code into the imdb lookup code, so if you move a file you can simply do a lookup again, but if your new code detecs the filename already in the db it will simply update (or insert) the path and not do the actual lookup again. In this case you could add a question to he user "A file with the same filename is already in the Database. Did you move this file?" This way it will work for users with several files with the same name but will also be simple and fast for users who move their files around. </p><p></p><p>It will require some user interaction, but IMHO it would be better and it will not remove functionality for other users.</p></blockquote><p></p>
[QUOTE="Inker, post: 81768, member: 10541"] If I understand correctly that would be my solution #2. As you mentioned it will only work if the path is already in the db. Not good. Add it if it isn't in. You update the pathID for every file each time you browse a folder....not good because it will be slow (and unnessarily so). Doing it while browsing a folder with 200 items will probably kill performace. Why don't you add a few lines of code into the imdb lookup code, so if you move a file you can simply do a lookup again, but if your new code detecs the filename already in the db it will simply update (or insert) the path and not do the actual lookup again. In this case you could add a question to he user "A file with the same filename is already in the Database. Did you move this file?" This way it will work for users with several files with the same name but will also be simple and fast for users who move their files around. It will require some user interaction, but IMHO it would be better and it will not remove functionality for other users. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
VideoDatabase Optimalisation (don't use path in lookup)
Contact us
RSS
Top
Bottom