Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Programmer > Re: Data Storag...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 24 of 24 Topic 52608 of 55513
Post > Topic >>

Re: Data Storage Issue (Basic Issue)

by =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@[EMAIL PROTECTED] > May 11, 2008 at 11:08 PM

Srini wrote:
> Which is more efficient? Why??
> Storing or Reading a file in database or on to disk in a web server
> environment? considering all things like network, connections, memory
> are ideal.
> 
> My knowledge says that using database is more efficient but few my
> pierce argue that storing in disk is more efficient when concurrent
> people accessing it...

There is a myth among many web developers that storing files
in database kills performance.

And my guess is that ASP accessing an Access 95 database on
a Pentium running NT 4 possible did.

But things are different today. With some good hardware and
a good database, then you should be able to get good
performance out if storing files in the database.

And it is so much easier to ensure data integrity and
administer the database solution.

I once did some experiments on the topic. The results are
attached below.

They are ASP.NET against MySQL, but technologies should
not matter much.

Arne

==================================================

File (1 threads): 1,9 get per second
File (10 threads): 2,2 get per second
File with web app cache (1 threads): 6,6 get per second
File with web app cache (10 threads): 16,1 get per second
File directly by web server (1 threads): 17,6 get per second
File directly by web server (10 threads): 20,1 get per second
Database (1 threads): 10,7 get per second
Database (10 threads): 11,8 get per second
Database with web app cache (1 threads): 15,4 get per second
Database with web app cache (10 threads): 19,6 get per second
File (1 threads): 1,9 get per second
File (10 threads): 2,2 get per second
File with web app cache (1 threads): 16,7 get per second
File with web app cache (10 threads): 19,4 get per second
File directly by web server (1 threads): 17,1 get per second
File directly by web server (10 threads): 20 get per second
Database (1 threads): 10,7 get per second
Database (10 threads): 11,9 get per second
Database with web app cache (1 threads): 17,3 get per second
Database with web app cache (10 threads): 19,6 get per second
File (1 threads): 1,9 get per second
File (10 threads): 2,1 get per second
File with web app cache (1 threads): 16,8 get per second
File with web app cache (10 threads): 17,8 get per second
File directly by web server (1 threads): 17,6 get per second
File directly by web server (10 threads): 20,1 get per second
Database (1 threads): 10,7 get per second
Database (10 threads): 11,6 get per second
Database with web app cache (1 threads): 17,1 get per second
Database with web app cache (10 threads): 19,5 get per second
 




 24 Posts in Topic:
Data Storage Issue (Basic Issue)
Srini <Srinihello@[EMA  2008-05-09 07:37:29 
Re: Data Storage Issue (Basic Issue)
Tom Anderson <twic@[EM  2008-05-09 18:19:34 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-09 23:01:21 
Re: Data Storage Issue (Basic Issue)
Wayne <nospam@[EMAIL P  2008-05-11 14:56:24 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-11 15:38:41 
Re: Data Storage Issue (Basic Issue)
=?UTF-8?B?QXJuZSBWYWpow7h  2008-05-11 22:59:14 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-11 23:07:41 
Re: Data Storage Issue (Basic Issue)
=?UTF-8?B?QXJuZSBWYWpow7h  2008-05-11 23:03:03 
Re: Data Storage Issue (Basic Issue)
Rex Mottram <rexm@[EMA  2008-05-09 23:14:01 
Re: Data Storage Issue (Basic Issue)
Tom Anderson <twic@[EM  2008-05-10 14:17:04 
Re: Data Storage Issue (Basic Issue)
Eric Sosman <esosman@[  2008-05-10 09:45:18 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-10 10:02:02 
Re: Data Storage Issue (Basic Issue)
Eric Sosman <esosman@[  2008-05-10 13:33:34 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-10 18:04:49 
Re: Data Storage Issue (Basic Issue)
Patricia Shanahan <pat  2008-05-10 15:30:32 
Re: Data Storage Issue (Basic Issue)
Eric Sosman <esosman@[  2008-05-11 09:20:52 
Re: Data Storage Issue (Basic Issue)
Mark Space <markspace@  2008-05-14 19:30:01 
Re: Data Storage Issue (Basic Issue)
=?UTF-8?B?QXJuZSBWYWpow7h  2008-05-31 21:17:31 
Re: Data Storage Issue (Basic Issue)
Roedy Green <see_websi  2008-05-11 03:51:09 
Re: Data Storage Issue (Basic Issue)
Tom Anderson <twic@[EM  2008-05-11 15:37:34 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-11 11:20:21 
Re: Data Storage Issue (Basic Issue)
John W Kennedy <jwkenn  2008-05-14 11:45:49 
Re: Data Storage Issue (Basic Issue)
Lew <lew@[EMAIL PROTEC  2008-05-14 23:46:05 
Re: Data Storage Issue (Basic Issue)
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-11 23:08:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:54:09 CST 2008.