question about SQL-MDF-Files

wirtnix
Member Posts: 50
Hi all,
i have a SQL 2005 64bit machine running. All Navision-data are in one single MDF-File on a 14-Disk SAN. the size is qurrently about 160GB
would it improve performance if the data would be stored in smaller data files (but on the same SAN) or is the file size no reason for low performance?
if yes:
how can i sparse this big file into many small ones?
i have a SQL 2005 64bit machine running. All Navision-data are in one single MDF-File on a 14-Disk SAN. the size is qurrently about 160GB
would it improve performance if the data would be stored in smaller data files (but on the same SAN) or is the file size no reason for low performance?
if yes:
how can i sparse this big file into many small ones?
0
Comments
-
That size is not the problem for slow performance.
I would seek the slow performance in other reasons:
-Do some index/SIFT tuning for SQL
-the drives must be in RAID10 for DB and RAID10 or RAID1 for TL
-The drives must be dedicated to the DB or the TL. The SAN may NOT use it to store other things (in a SAN, this is a big problem). See also : http://dynamicsuser.net/blogs/singleton/archive/2008/03/30/why-i-don-t-want-my-clients-to-use-sans-for-dynamics-nav-navision.aspx#117092
-the drives should be formatted with a cluster-size of 64KB AND the RAID10 should be striped in 64KB-stripes.
-...
[Topic moved from Navision forum to SQL Performance forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
wirtnix wrote:would it improve performance if the data would be stored in smaller data files (but on the same SAN) or is the file size no reason for low performance?how can i sparse this big file into many small ones?
Search SQL Books Online forALTER DATABASE ... ADD FILE(..)
for adding new files andDBCC SHRINKFILE(..)
for shrinking your primary file
However I think that Kriki has pointed you to better solutions - separate database file from log file (put it on separate disk set, separate volume on the same disk set is not enough), do some index/SIFT tuning. This will give you much better improvement than only spreading the data across the files.
And - DON'T believe if somebody tells you that SAN will handle everything and the same disk set can be shared between log and data volumes.
Regards,
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Slawek Guzek wrote:And - DON'T believe if somebody tells you that SAN will handle everything and the same disk set can be shared between log and data volumes.
1) if your SAN-hardware vendor says this, search another one. (in case of a consultant => search another one) (if you get to over 24 disks, it might work well for performance I read somewhere [maybe in the blog of David]).
2) if your SAN-hardware vendor cannot give you a whitepage (or best practices,...) on how to configure a SAN for SQL, search another one.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:...
2) if your SAN-hardware vendor cannot give you a whitepage (or best practices,...) on how to configure a SAN for SQL, search another one.
The problem with whitepapers on configuring SQL is that they are too generic. 90% of the ones I see advice RAID 5 as a valid solution. IF you are looking at whitepapers be sure they are dealing with configuring SQL in a transaction processing enviroment.There are no bugs - only undocumented features.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions