|
-
Oct 5th, 2008, 01:01 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Database or Folder structrue
Hi guys,
I have 15,000 icons on my pc and as you can imagine searching, managing and backing these up is starting to become a nightmare. They are currently stored in folders as im sure most peoples are.
I am in the middle of mocking out an application that will allow me to work with my icons easier and wanted to know if a database setup would be a better option.
So basically my question is based on 15,000 icons which setup would be better. Database or file structure.
Thanks
-
Oct 5th, 2008, 01:21 PM
#2
Re: Database or Folder structrue
Hey,
In my opinion, you would want to keep the folder structure that you have in place, but what you might want to do in keep the location of the icon in the database. That way you still have access to the icons on the file system when you need them, but you can easily search for and find an icon that you want by searching a database based on keyword, subject etc.
Gary
-
Oct 5th, 2008, 01:28 PM
#3
Thread Starter
Frenzied Member
Re: Database or Folder structrue
I was thinking of that but IMOO that is a large amount of redundancy when I would store the icon itself in the DB.
-
Oct 5th, 2008, 01:57 PM
#4
Re: Database or Folder structrue
I can think of no reason not to put the images in the database.
Store the images as VarBinary(max) datatypes in the database.
Or use MS SQL 2008 Express where they have a new datatype of FileStream - I've not used it yet but that might be a match for what you are doing.
-
Oct 5th, 2008, 02:03 PM
#5
Thread Starter
Frenzied Member
Re: Database or Folder structrue
My reasoning was simply what would be the point of having a database that stores information on an icon and then have a file system that stores the icon itself. A database is one entity that can be managed easier that a mass of folders.
Does a database store images and information more efficiently than a file structure in terms of memory?
-
Oct 5th, 2008, 02:22 PM
#6
Re: Database or Folder structrue
The reason that I suggested that, was mainly based on the fact that I chose to store all the photos for my website on the file system, and not in the database, mainly because there are a lot of photos, and I didn't want the database to get too bloated. With icons I guess it would be different, since they are much smaller in size.
Gary
-
Oct 5th, 2008, 02:23 PM
#7
Re: Database or Folder structrue
 Originally Posted by szlamany
I can think of no reason not to put the images in the database.
I was agreeing with you
Yes, yes - put the icon into a field in a database table. Put a couple of other fields in that row that describe nicely - maybe even a field to put keywords into.
Then you can easily create an app - even a webpage - to display and/or extract them. Sort then - select on ranges of keywords...
Putting images and icons into a DB is a really good idea.
Putting them into a DB gives you a single method of saving and backing them up - and even sharing them with the folks here
-
Oct 5th, 2008, 02:24 PM
#8
Re: Database or Folder structrue
 Originally Posted by gep13
The reason that I suggested that, was mainly based on the fact that I chose to store all the photos for my website on the file system, and not in the database, mainly because there are a lot of photos, and I didn't want the database to get too bloated. With icons I guess it would be different, since they are much smaller in size.
Gary
We've got 10,000+ photos of students in a DB at one of our customer sites - MS SQL server can handle it...
-
Oct 5th, 2008, 02:26 PM
#9
Thread Starter
Frenzied Member
Re: Database or Folder structrue
Sorry, im knackered. I need to go to bed. Super, il do that so (after I teach myself how to use datbases). Thanks!
-
Oct 5th, 2008, 02:27 PM
#10
Re: [RESOLVED] Database or Folder structrue
What about SQL Server Express though? That is what I am using for my personal site.
Sorry for hi-jacking your thread Dean, just interested in the answer
-
Oct 5th, 2008, 02:41 PM
#11
Re: [RESOLVED] Database or Folder structrue
 Originally Posted by gep13
What about SQL Server Express though? That is what I am using for my personal site.
Sorry for hi-jacking your thread Dean, just interested in the answer 
There is a 4GB limit to the size of a single MS SQL 2005 Express database
http://www.microsoft.com/sql/prodinf...-features.mspx
But I just spent 10 minutes looking around MSDN and it appears that the size limit has been removed with MS SQL 2008 Express
http://msdn.microsoft.com/en-us/library/ms165588.aspx
And of course it has this new FileStream datatype - made specifically for doing things like we are discussing here.
-
Oct 5th, 2008, 02:44 PM
#12
Re: [RESOLVED] Database or Folder structrue
Hmm, interesting.
One of the main reasons that I chose to do it this way was because I was wanting to store the full resolution images. I have just checked, and currently all the files come to just over 3GB. Which is close to the limit of SQL Server Express 2005. Will have to check out SQL Server Express 2008, and see what can be done with that.
Thanks for the info!!!
Gary
-
Oct 5th, 2008, 02:48 PM
#13
Re: [RESOLVED] Database or Folder structrue
I still cannot get a firm answer on whether 2008 express has that file limit of 4gb...
But you could always have just two DB's if you did reach 4 gb...
I cannot imagine how useful the FileStream datatype would be in MS SQL 2008 if there was a limitation on database size - maybe the filestream data partition is excluded from that limitation...
If I find out more info I will get back to you all!
-
Oct 5th, 2008, 02:49 PM
#14
Re: [RESOLVED] Database or Folder structrue
-
Oct 5th, 2008, 02:58 PM
#15
Re: [RESOLVED] Database or Folder structrue
It isn't made particularly easy to find, but 2008 Express has got the 4GB limit:
http://www.microsoft.com/sqlserver/2...ecialized.aspx
I have no idea whether the FileStream is affected by that limit.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|