This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Urgent comments needed please - file storage (DB vs. File Server) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Urgent comments needed please - file storage (DB vs. File Server)" Watch "Urgent comments needed please - file storage (DB vs. File Server)" New topic
Author

Urgent comments needed please - file storage (DB vs. File Server)

Monty Guppy
Ranch Hand

Joined: Sep 15, 2001
Posts: 49
Hi,
I have a small reporting system that I have written, where I generate PDF, XML, CSV reports. Currently I am storing the generated reports as binaryarray in the LONG RAW field of Oracle. My system generates 30-35 reports that have an average size of 57K. The max report size to date has been 1.2 MB, although there are less than 1% of reports that are of size > 1MB.
I am resisting moves to start storing my reports on file server because of tremendous time pressures. Can someopne suggest good reasons of db storage over file server storage? Are there any resources that you are aware of on the internet that can help me present with an arguement.
Thanks a lot for your help.
Steve Carton
Greenhorn

Joined: Jan 21, 2003
Posts: 4
Prateek, I seem to run into this question a lot. For me, the arguments in favor of using the database (ORACLE or SQL Server, or whatever) are that there are integrated backup facilities and transactions logs to allow recovery in the event of a problem. These same things can be accomplished in file space, but there's more work involved.
Originally posted by Prateek Gupta:
Hi,
I have a small reporting system that I have written, where I generate PDF, XML, CSV reports. Currently I am storing the generated reports as binaryarray in the LONG RAW field of Oracle. My system generates 30-35 reports that have an average size of 57K. The max report size to date has been 1.2 MB, although there are less than 1% of reports that are of size > 1MB.
I am resisting moves to start storing my reports on file server because of tremendous time pressures. Can someopne suggest good reasons of db storage over file server storage? Are there any resources that you are aware of on the internet that can help me present with an arguement.
Thanks a lot for your help.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Prateek Gupta:
I am resisting moves to start storing my reports on file server because of tremendous time pressures. Can someopne suggest good reasons of db storage over file server storage? Are there any resources that you are aware of on the internet that can help me present with an arguement.
Thanks a lot for your help.

In my humble opinion, not having the time to move the file server implementation would be my only argument here. From the small description you gave, it really seems as using the database was overkill, only adding unnecessary complexity to the system.
And as a general principle, I don't lie to my customer.
But I am curious:
What are your time pressures? Why did you start with a database? And where does the requirement to move to a file server come from?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
Consider Paul's rocket mass heater.
 
subject: Urgent comments needed please - file storage (DB vs. File Server)