Reputation: 2154
I have a bunch of xml files that is about 700 GB in size. I'm going to load the data within those files into a SQL Server 2008 database table(tabular data). In addition to the fields that will hold the data in a tabular format, the table will contain a field of SQL Server XML type that holds the xml data as a whole. I want to use the FILESTREAM feature of SQL Server 2008 instead of loading the whole xml into the field. I want to know the benefits the performance of the queries that will be made on such a very large-table will gain and the pros and cons of this feature.
Thank you in advance.
Upvotes: 0
Views: 388
Reputation: 2294
I do not expect this will ever be marked as the answer because the true answer will only be discovered after an through study of available solutions.
BUT
The answer I have is really a question for you. How are you going to use this data? IF your are going to shread the xml to retrieve the reporting values and keep the complete xml for a reference then I would goto Filestream. If you are going to run reports directly from the xml then you will have to load the data into the database creating the needed indexes.
Loading all data into SQL Server as a combination of shreaded xml and an xml datatype
PRO
CON - Backup size - Backup time - Slow if data is in native XML
Loading values from XML into SQL Server and using Filestream
PRO
Be aware of your storage needs for backups and the maintenaince window need.
Upvotes: 1