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!)
efficient database code
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="bpell" data-source="post: 644788" data-attributes="member: 106216"><p>This is a little late but maybe it will help with posterity. A lot of this depends on memory and machine speed. It's going to be more efficient to read the information in and insert it (or update) the database in that loop with the parameterized query and skip the collection of objects. If you fill a collection or generic list you'll have to iterate through the files, then iterate through that collection to update the DB (all the while, the entire collection is in memory). If you have plenty of memory and a fast machine, not an issue. I'm running MP on a 1.2Ghz with 512mb of RAM. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> It works well, but I prefer using the least footprint. I have a catalog of over 43,000 files and when I've stored the metadata in an Access database I've skipped the object collection and written the data straight to the table.</p></blockquote><p></p>
[QUOTE="bpell, post: 644788, member: 106216"] This is a little late but maybe it will help with posterity. A lot of this depends on memory and machine speed. It's going to be more efficient to read the information in and insert it (or update) the database in that loop with the parameterized query and skip the collection of objects. If you fill a collection or generic list you'll have to iterate through the files, then iterate through that collection to update the DB (all the while, the entire collection is in memory). If you have plenty of memory and a fast machine, not an issue. I'm running MP on a 1.2Ghz with 512mb of RAM. :) It works well, but I prefer using the least footprint. I have a catalog of over 43,000 files and when I've stored the metadata in an Access database I've skipped the object collection and written the data straight to the table. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
efficient database code
Contact us
RSS
Top
Bottom