Hi
We run SQL 2000 on Windows 2000. The database has one big table with
approx. 90m rows in it, it also as 4 indexes on it, one of them is a
clustered index. They physical size of the database is approx. 50Gb
I am planing to migrate the database to more powerful server. My
question is on the new server would we get any benefit from have say 5
x10 Gb file for the database as opposed to a single 50GB file.
The database will have exclusive access to RAID 10 array with
dedicated controller for the data, another array for the T.Log
Any thoughts hints would be very helpful
Thanks 5 1613
Not really. Although there many be some small gain in having multiple files
in file group. At least equal to the number of processors in the server. I
would recommend the following layout for data and index.
Assuming four processors, create four files in your primary file group to
hold the data. Preallocate the files as ((the size of the table + growth) *
2)/4 this should give you enough room to grow and reindex the table. Create
a second file group for the nonclustered indexes. This way if you ever want
to move the index file group off to another set of disks you're ready.
"rc" <rc@spam.com> wrote in message
news:v0******** *************** *********@4ax.c om... Hi
We run SQL 2000 on Windows 2000. The database has one big table with approx. 90m rows in it, it also as 4 indexes on it, one of them is a clustered index. They physical size of the database is approx. 50Gb
I am planing to migrate the database to more powerful server. My question is on the new server would we get any benefit from have say 5 x10 Gb file for the database as opposed to a single 50GB file.
The database will have exclusive access to RAID 10 array with dedicated controller for the data, another array for the T.Log
Any thoughts hints would be very helpful
Thanks
Hi rc,
Ray is on the right track with his solution. However, with a 90 million
row table you may have to do something more dramatic in order to
increase performance. I suggest you look into creating a partitioned
view (check it out in Books Online).
Let's assume your 90 million row table has its clustered index based of
the key "Social Security Number" and your application does MOST of its
searches using this key. You can split the single table into 10 smaller
tables (or more or less) using the SSN as your guide. Any SSN that
starts with 0 goes into one table, 1 to another table, 2 to another and
so on. Finally you create a view that performs a "select *" from each
table - the syntax can be found in BOL.
Now any query only needs to perform an inital search to see in which
table your record is located and then it performs a search on 1/10 the
amount of the original rows (assuming an event dispersement of SSNs).
On 4 Feb 2005 11:43:40 -0800, "joshsacket t" <jo*********@gm ail.com>
wrote: Hi rc, Ray is on the right track with his solution. However, with a 90 million row table you may have to do something more dramatic in order to increase performance. I suggest you look into creating a partitioned view (check it out in Books Online).
Let's assume your 90 million row table has its clustered index based of the key "Social Security Number" and your application does MOST of its searches using this key. You can split the single table into 10 smaller tables (or more or less) using the SSN as your guide. Any SSN that starts with 0 goes into one table, 1 to another table, 2 to another and so on. Finally you create a view that performs a "select *" from each table - the syntax can be found in BOL.
Now any query only needs to perform an inital search to see in which table your record is located and then it performs a search on 1/10 the amount of the original rows (assuming an event dispersement of SSNs).
Thanks both of you, I will have a think about the info provided
What really matters here is the number of disk spindles for the filegroup
containing the 50GB table. The more disk spindles it got, the more disks
the server can keep busy by issuing readahead IOs, and the better the
performance of the scans over the table. So try to add more physical disks
to the filegroup.
--
Gang He
Software Design Engineer
Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"rc" <rc@spam.com> wrote in message
news:v0******** *************** *********@4ax.c om... Hi
We run SQL 2000 on Windows 2000. The database has one big table with approx. 90m rows in it, it also as 4 indexes on it, one of them is a clustered index. They physical size of the database is approx. 50Gb
I am planing to migrate the database to more powerful server. My question is on the new server would we get any benefit from have say 5 x10 Gb file for the database as opposed to a single 50GB file.
The database will have exclusive access to RAID 10 array with dedicated controller for the data, another array for the T.Log
Any thoughts hints would be very helpful
Thanks
You might also wan´t to look in to putting the indexes(non-clustered)
on a seperate filegrou, residing on a seperate physical disk. That was
the server kan access index - and table data simultaneusly.. . might
speed things up as well This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike |
last post by:
Hi guys,
I need to convertvirtual (http:// ...) path to physical (c:\...) in
the desktop application. Any ideas?
Thansks,
Mike
|
by: genetic.error |
last post by:
I installed VS.NET 2003 on Windows 2000 Pro SP3. Since doing so, I
have no internet connection. Also, I have no access to my home
network.
I've done everything I can think of to correct the problem, and I'm at
a loss. Formating is not an option ATM, and i dont know it would
happen any differently next time around anyway. Suggestions would be
appreciated.
|
by: Andy |
last post by:
Hi All!
We are doing new development for SQL Server 2000 and also moving from
SQL 7.0 to SQL Server 2000.
What are cons and pros for using IDENTITY property as PK in SQL SERVER
2000?
Please, share your experience in using IDENTITY as PK .
|
by: Puvendran |
last post by:
Hi,
We have encountered deadlock on a table which is used to generate
sequential numbers for different categories eg typical entries
Category Value
TRADE_NO 1456
JOB_NO 267
.....
|
by: L Mehl |
last post by:
Hello --
Is there a way to configure 2000 so it will save a view layout after I
change it in the diagram pane?
Thanks for any help.
Larry Mehl
| |
by: Nobody |
last post by:
DB2 500G database, Wintel, heavily loaded OLTP (5M+ transactions a day;
all transactions are extremely small, all selects are controlled
(no ad-hoc), 99% of all selects are very small (no table
scans, index scans are very limited in size) ). Write performance
is generally more important than read performance, read performance
of heavy queries (the ones with table scans) is not important at all.
Question: how to spread data across...
|
by: CSDunn |
last post by:
Hello,
I have a situation with MS Access 2000 in which I need to display report
data in spreadsheet orientation (much like a datasheet view for a form). If
you think of the report in terms of what a spreadsheet might show, the
column names will actually be dynamic, based on data from a SQL Server 2000
database. The row data will also come from the same database. So in this
case, I will have a main report and a subreport. I've already tried...
|
by: dgk |
last post by:
Is there some built in way to know whether a physical folder path is
'My Documents" for a specific user? I can always use xxx.StartsWith to
compare it to the enumeration returned by the Personal folder, but it
seems a bit inelegant.
|
by: datapro01 |
last post by:
I am a DB2 DBA that has been asked to become familiar enough with SQL
Server in order to become actively involved in its installation,
implementation, and to review database backup/recovery procedures. SQL
Server will be used by a vendor packaged application.
The problem is that we are awaiting word on whether it will be SQL
Server 2000 or 2005 we will be working with. I have been told that
there are considerable differences between the...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |