Hi,
I need to know if storing images in the MSSQL database is a viable option when compared to having them in a different directory and only storing their location or address in the DB.
I ask this with reference to the performance of the DB. Will having many images of huge size on the databse make it slow for retrieval as the MDX or database file size would eventually increase?
Does the size of the database file has to do anything with MSSQL query performance?
Comments on this will be appreciated.
Thanksstore the location and file name. You will bloat your database and retrieving the images will not be as efficient. When you store image data, it is not really in the "row" but the row contains a link to another location inside the database. The main issue for me, and I have a lot of image data and I get loads of new ones all of the time, is capacity. By putting the images on a huge file server I avoid the issue of having to buy bigger and bigger machines to put sql server on and having to migrate my databases as a result.|||Thanks for the reply. I too follow the same approach, but would like to know if storing the images in the db does affect its performance. I mean when we query the db will the result sets hving image data in them load on the ram and make accessiblity slower. OR Does a huge .mdx db file make query responses slower.|||SQL Server is basically designed to work with small bits of data (rows of tables). Start throwing in large image data, and you get into some interesting memory errors at times. Let me see if I can dig out one of my old threads....|||Hi,
Consider this:
Pages are mapped with "bitmaps" (or allocation pages) for various purposes.
These maps are designed to follow a "pyramid"-type structure, with a single page pointing to children pages that point to ... and so on. Generally speaking, anything past a three-level map begins to degrade performance. This is true for index levels also.
What was said above about bloating the database and the design for small(er) rows is accurate.
You will have issues with: Backups, Consistency Checks, Migrations, etc. Any table scans will have to grind past the image pages, etc. etc.
'Nuff said?
Good luck!|||Thanks guys for your valuable input. MCrowley can you please send me links to your other posts as mentioned.
I too am of the same idea and was trying to prove my point to some people who think storing images in a database does improve performance and maintain data integrity (as if the folder locations can change if you simply store the address of the image).
Regards|||Sorry. Looks like it might have been lost in the latest troubles here.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment