I have a big table (heap)... well, not so big, I have a small server
and I want to spread access to it across several new disks dedicated
only to that table.
I known its possible to do that creating a clustered index with "ON
filegroup" option but I want to maintain it as a heap, is there any
way to do this without dropping indexes/references - bulk unload -
create table - bulk load - create indexes?. 4 4457
"el emperador" <14*******@terra.es> wrote in message
news:dc**************************@posting.google.c om... I have a big table (heap)... well, not so big, I have a small server and I want to spread access to it across several new disks dedicated only to that table.
I known its possible to do that creating a clustered index with "ON filegroup" option but I want to maintain it as a heap, is there any way to do this without dropping indexes/references - bulk unload - create table - bulk load - create indexes?.
As far as I know, you have to drop everything and recreate it, as you have
described. But in general, in MSSQL it's a good idea to have a clustered
index on all tables, so it would be interesting to know why you prefer to
maintain a heap table.
Simon
"Simon Hayes" <sq*@hayes.ch> wrote in message news:<41**********@news.bluewin.ch>... "el emperador" <14*******@terra.es> wrote in message news:dc**************************@posting.google.c om... I have a big table (heap)... well, not so big, I have a small server and I want to spread access to it across several new disks dedicated only to that table.
I known its possible to do that creating a clustered index with "ON filegroup" option but I want to maintain it as a heap, is there any way to do this without dropping indexes/references - bulk unload - create table - bulk load - create indexes?. As far as I know, you have to drop everything and recreate it, as you have described. But in general, in MSSQL it's a good idea to have a clustered index on all tables, so it would be interesting to know why you prefer to
I agree.
maintain a heap table.
Well, I have found that after define a clustered index some queries
changed their plan (from a "Index Seek"-->"Nested Loops"-->"Bookmark
Lookup" to a "Clustered Index Seek") and surprisingly got a little
slower, that's suggar for the query optimizer so it thinks its better
to use it, I have to investigate why this happens before define "the
correct" clustered index, a not easy task as you know. Right now I
only want to improve "bookmark lookup" on this table that is 60%-80%
of the weigth of the queries. Simon
Thanks
Hi
Adding the clustered index in the new filegroup and then dropping it will
leave the data in the new filegroup. Your other indexes will be rebuilt
twice though, so it may be quicker to drop and re-create them yourself.
John
"el emperador" <14*******@terra.es> wrote in message
news:dc************************@posting.google.com ... "Simon Hayes" <sq*@hayes.ch> wrote in message
news:<41**********@news.bluewin.ch>... "el emperador" <14*******@terra.es> wrote in message news:dc**************************@posting.google.c om... I have a big table (heap)... well, not so big, I have a small server and I want to spread access to it across several new disks dedicated only to that table.
I known its possible to do that creating a clustered index with "ON filegroup" option but I want to maintain it as a heap, is there any way to do this without dropping indexes/references - bulk unload - create table - bulk load - create indexes?.
As far as I know, you have to drop everything and recreate it, as you
have described. But in general, in MSSQL it's a good idea to have a clustered index on all tables, so it would be interesting to know why you prefer
to I agree.
maintain a heap table.
Well, I have found that after define a clustered index some queries changed their plan (from a "Index Seek"-->"Nested Loops"-->"Bookmark Lookup" to a "Clustered Index Seek") and surprisingly got a little slower, that's suggar for the query optimizer so it thinks its better to use it, I have to investigate why this happens before define "the correct" clustered index, a not easy task as you know. Right now I only want to improve "bookmark lookup" on this table that is 60%-80% of the weigth of the queries.
Simon
Thanks
"John Bell" <jb************@hotmail.com> wrote in message news:<dB***********************@news-text.cableinet.net>... Hi
Adding the clustered index in the new filegroup and then dropping it will leave the data in the new filegroup. Your other indexes will be rebuilt twice though, so it may be quicker to drop and re-create them yourself.
John
Thanks John, that's perfect. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kevin Grigorenko |
last post by:
Hello,
I couldn't find an obvious answer to this in the FAQ. My basic question,
is: Is there any difference in allocating on the heap versus the stack? If
heap or stack implementation is not...
|
by: newbiegca_sqlsever2000 |
last post by:
SQLServer 2000 Backup question.
Let us say we have a database where data is stored in filegroup F1 and
Filegroup F2
Backup of this is done on alternate days
Day 1 - Full backup of file...
|
by: Victor |
last post by:
Hola a todos:
En mi base de datos tengo dos filegroups llamados FG1 y FG2.
Recientemente he creado una tabla y por defecto quedó alojada en el
filegroup PRIMARY. ¿Cómo puedo hacer para mover...
|
by: LineVoltageHalogen |
last post by:
Greetings All, I was hoping that someone might be able to shed some
light on this issue. I am trying to add a FileGroup/Datafile to an
existing SQL database. The code below compile and it runs in...
|
by: mchang |
last post by:
Hello,
I have been trying to figure out how to temporarily change the max
filegroup size of a SQL 2000 database I "inherited" when our DBA quit.
I just need some breathing room until I can...
|
by: si.downes |
last post by:
Using SQL Server 2000 SP3 I'm developing a data warehouse where data
will be archived off to a filegroup, this filegroup backed up and the
tables in this filegroup truncated to free up space on...
|
by: Dr Warehouse |
last post by:
Hi,
I am expanding our data warehouse solution with new filegroups on
several subsystems.
I want to know which idea is better!
- create clustered indexes on tables to 'move' them to new...
|
by: Takpol |
last post by:
Hello,
I have several archived filegroups that have data in them partitioned
based on the date. These filegroups have been removed from database
after archival. For example two months ago....
|
by: raj.raghavan |
last post by:
Hi,
I have a database were all the indexes are in a seperate filegroup a
few large tables are in a seperate filegroup. We take backup at
different times and I have backup of primary, two filegroup...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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...
|
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,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |