SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Filestream, AlwaysOn and large files


Filestream, AlwaysOn and large files

Author
Message
WolfgangE
WolfgangE
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1275 Visits: 798
hi all,

I'm dealing with some new topics. The more I read about the more questions I have, not finding answers.
Maybe some of the questions can be answered here. Would be great :-)


Background:
we are starting a new project using SQL 2012 and AlwaysOn High Availability Groups.
On on the requests: we have to store files.
What for? A customer, using a frontend, can execute different queries an save the results to different files. Then the customer can show a list of his files and download them at any time.

Some of the files to store can grow to a size of 200-500 MB.
Our database wil be placed on a high availability group, using synchronous mirroring.

The questions
1) Will the files on the file system copied to the secondary replicas too?
2) If adding a 500 MB file to a file stream table, will it automatically be transferred to the storage of the seondary replica(s)?
3) If yes, will this be done as a single transaction? This would take some time blocking all other transactions transferred to the secondary replicas?
4) What difference would it be to use the FileTable-Feature with non_transacted_access instead of FileStream only?
5) Are there other senseful possibilities for saving files of this size having context to the database?


Thank you for any help :-)
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (97K reputation)SSC Guru (97K reputation)SSC Guru (97K reputation)SSC Guru (97K reputation)SSC Guru (97K reputation)SSC Guru (97K reputation)SSC Guru (97K reputation)SSC Guru (97K reputation)

Group: General Forum Members
Points: 97453 Visits: 33013
Short answer, yeah, the files will be available. Longer answer, go here to get Microsoft's word on how this works.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
WolfgangE
WolfgangE
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1275 Visits: 798
Thank you for your answer :-) I already read the site you suggest. Unfortunately this gives me no information about how handling of large files while affect the whole system and transaction log. I keep on searching ;-)
HowardW
HowardW
SSCertifiable
SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)

Group: General Forum Members
Points: 6189 Visits: 9892
AFAIK, it works like everything else in synchronous mode, e.g. the transaction won't commit until the data has reached the secondary, this could obviously lead to some slow down with large files (it's the price you pay for synchronous).

Also, make sure you're at least on SP1 as there was a serious bug affecting failover times in RTM.

This functionality is all pretty new and there isn't a lot of data on how this performs in the wild yet, so I'd plan some time for thorough performance testing before committing.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search