Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 132,688 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,295 people online right now. Registration is fast and FREE... Join Now!




to store in database or List<object>

 
Reply to this topicStart new topic

to store in database or List<object>

Yakyb
post 4 Jun, 2008 - 01:09 AM
Post #1


New D.I.C Head

*
Joined: 4 Jun, 2008
Posts: 7

I have been writing an app in order to archive all my media (primarily MP3's) into a SQL server database on another machine. then to return them as quickly as possible using various search techniques

i have written up to a complete database

process being

1.) build up string[] of files using directory.getFiles
2.) build up object MP3 using 3rd party Taglib dll by passing string
3.) create List<MP3> from each
4.) passs List<MP3> to SQL


this works brilliantly and i run it multithreaded in order to stop not responding problems

now the next part im going to create a UI in order to search and launch each file (much like a media centre) however i am primarily concerned with the speed of search.

i will be searching for artist, genre, album and track name

some specs

mp3 table contains
ID , filename , extension , pathstring , Artist , Album , Track , Genre , artistID , AlbumID , Genre ID

then have
Genre , Artist , Album
tables

containing
ID Description

that links to MP3 table

MP3 table is about 15000 rows Long

now because i'm primarily concerned with speed i was wondering

is it best to run straight against SQL (bearing in mind its on another box that is about 6 years old) or would it be best to build some lists on app load (memory usage is not an issue) therefore searching against the lists and not against SQL
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 07:28AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month