473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What's faster, SQL Server or a file?

I've got a ton of product images. Originally I figured I'd just make
them blobs in SQL Server, in a row with the product description, etc..

But now I'm wondering if a simple image file (jpeg or whatever) on the
hard drive would be faster to load. Or does one have priority over the
other?

Thanks for your help.
Nov 18 '05 #1
2 1043
Using a Database for images is alot slower then if you just stored them on file.
Nov 18 '05 #2
Files on disk are faster when served from IIS6 because the images can be
cached and delivered directly via Windows Kernel networking functions.

That said, the speed difference on your server is probably pretty
insignificant unless this is a high traffic site.

The most important suggestion is that you set the HTTP caching headers
(either via IIS, or in your SQL-based page) so that the user needn't
redownload images they already have.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Bruce W.1" <bw@noDirectEmail.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...
I've got a ton of product images. Originally I figured I'd just make
them blobs in SQL Server, in a row with the product description, etc..

But now I'm wondering if a simple image file (jpeg or whatever) on the
hard drive would be faster to load. Or does one have priority over the
other?

Thanks for your help.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Samuel | last post by:
I am building an web application that will be hosted on load balanced servers (multiple front and one backen db). The application will have to allow users to upload files onto the server. For...
1
by: david | last post by:
I have a question, when I store images on my server, I can let user access them by url like http://myurl/images/(imagename). I want to have more control on it, I can provide user a url like...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
24
by: Bob Alston | last post by:
Most of my Access database implementations have been fairly small in terms of data volume and number of concurrent users. So far I haven't had performance issues to worry about. <knock on wood> ...
2
by: Skwerl | last post by:
We just installed a new SAN from Sun and need to migrate several terrabytes over to it from our Windows servers. We've found that drag-and-drop copying files using Explorer is going to be very...
10
by: Extremest | last post by:
I know there are ways to make this a lot faster. Any newsreader does this in seconds. I don't know how they do it and I am very new to c#. If anyone knows a faster way please let me know. All...
5
by: Sonnich | last post by:
Hi all I use the opendir and readdir to search for files... but they read in all files, so sometimes I get several hundreds. If there is a way to give a wildcard, it might be a lot faster....
16
by: Jon Davis | last post by:
We ordered new systems with fast hardware and great specs, but Visual Studio takes longer to build a project than on the old workstation. Msbuild is faster, csc.exe is faster, file copy is faster....
6
by: Scott | last post by:
Hi, Which is faster writing to a file using fwrite or is using a database to store data? I want to create a log file and it does not matter if it is in a text file or on a database. I just...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.