473,503 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using BLOB

KR
Hi,

One of our third-party software vendors is planning to implement BLOB
in their database for storing certain documents. We are not too
thrilled about it, since it can be a drain on our resources, but I
would like to get the expert opinion out there on the pros and cons of
implementing this.

Also, the database is in Full recovery mode and we back up the
transaction log every 15 minutes. We also do a process similar to log
shipping. We have two servers to which these transaction logs are
restored to periodically. What will the impact on the transaction logs
due to changes to the BLOB fields.

If you could also point me to any resources that talks in detail about
performance, backup and recovery in relation to BLOB that would be
great.

Thanks in advance

KR

May 17 '06 #1
3 1813
KR (kr****@bastyr.edu) writes:
One of our third-party software vendors is planning to implement BLOB
in their database for storing certain documents. We are not too
thrilled about it, since it can be a drain on our resources, but I
would like to get the expert opinion out there on the pros and cons of
implementing this.
The first question I need to ask: is there a requirement to store
these documents at all?

Asssuming that the answer is in the affirmative, there are two options:
1) Store it in the database.
2) Store it on disk, and only save the file path in the database.

The latter is usually easier to implement in the application, and
takes less toll in the database.

However, when you think of it, the first solution is much easier to
manage. What if there is a crash and you need to restore? If everything
is in the database, you know that what you restore is transactionally
consistent. If you need to restore database + file system, get a
consistent restore is much more difficult.

Another aspect is that file system is more prone to accidents, like
people deleting files by mistake.
Also, the database is in Full recovery mode and we back up the
transaction log every 15 minutes. We also do a process similar to log
shipping. We have two servers to which these transaction logs are
restored to periodically. What will the impact on the transaction logs
due to changes to the BLOB fields.


And if you store the documents in the file system, how do you do
log shipping?

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
May 17 '06 #2
KR
Where we store these documents are not under our control - the
application is designed by a third-party. So we have to go with their
decision - what we are trying to do is to analyze any problems that
may present due to this and devise a solution or go to the software
vendor with recommendations.

The documents in the file system are backed up separatley from the
database. We cannot do Log shipping on our databases since we have SQL
Standard edition. We backup our transaction logs periodically to a
network 'store' and restore the transaction logs periodically on the
two standby server using a stored procedure.

What we are also concerned here is the possible effect on the size of
transaction log due to updates and inserts on these BLOB fields, the
backup and restore time.

May 18 '06 #3
KR (kr****@bastyr.edu) writes:
Where we store these documents are not under our control - the
application is designed by a third-party. So we have to go with their
decision - what we are trying to do is to analyze any problems that
may present due to this and devise a solution or go to the software
vendor with recommendations.

The documents in the file system are backed up separatley from the
database. We cannot do Log shipping on our databases since we have SQL
Standard edition. We backup our transaction logs periodically to a
network 'store' and restore the transaction logs periodically on the
two standby server using a stored procedure.

What we are also concerned here is the possible effect on the size of
transaction log due to updates and inserts on these BLOB fields, the
backup and restore time.


It goes without saying that the more data you store in the database,
the longer time the backup will take, and the more size is needed for
the transaction log.

I don't have any information about BLOBs and backups per se, but I find
it difficult to believe that a 1MB blob would take any significant more
toll on backup and log than 10000 rows of 100 bytes.

What you should do, is to find an estimate on many documents there
will be in the database, and how many that will be inserted, updated
and deleted per day. And of course, the expected average size of the
documents.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
May 18 '06 #4

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

Similar topics

2
6103
by: Carolyn Longfoot | last post by:
Help! This is driving me crazy... I'm trying to read a BLOB from a db and display it in a browser, like so: $query="SELECT blob from table where blob_id=9"; $result=mysql_query($query);...
1
3067
by: Ed | last post by:
I've search around endlessly for a solution to this problem but have not found anything yet. I'm using Crystal 9 with .NET. I am not using a DSR to create the report. Instead I am creating a...
7
11434
by: sime | last post by:
Hi, I have a blob field in a mysql database table. I want to copy a blob from one record to another. I am having trouble transferring the data via a php variable. Maybe I need to addslashes or...
3
4701
by: hamvil79 | last post by:
I'm implementig a java web application using MySQL as database. The main function of the application is basically to redistribuite documents. Those documents (PDF, DOC with an average size around...
11
22981
by: Chris Fink | last post by:
I have setup an Oracle table which contains a blob field. How do I insert data into this field using C# and ADO.net?
1
8668
by: Markusek Peter | last post by:
Hi, I'm using MySQLDriverCS. I've got no problem to store BLOB into database, but I can't get it back(save to file). Problem is with DataTable(returns string:( ) My code: -- DataTable dt = new...
2
3730
by: Chucker | last post by:
Hi Community, I think I can store Binary Data in SQL Server but when I try to retrieve it, I always only get one byte. I think I stored my Binary Data in SQL Server in a Colum of Type Image....
1
3378
by: msc.batra | last post by:
I want to load multiple rows of BLOB and CLOB into DB2 using CLI. Which are the possible ways to do it? Any help...
1
5667
by: Cerebrus | last post by:
Hi all, Using : .NET 1.1, SQL Server 2000, Win 2K. Could anyone confirm if there is a bug in the SqlDataReader.GetChars() method when using CommandBehavior.SequentialAccess to get a BLOB...
9
7956
by: matt | last post by:
hello, im doing my first ASP.NET app that inserts & retrieves files from Oracle (no need for a discussion on *that*!). i learned first-hand of the somewhat awkward technique for inserting...
0
7093
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
7287
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
7348
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
7467
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
5592
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,...
1
5021
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...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.