dbTalk Databases Forums  

good way for deleting unsed records...

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss good way for deleting unsed records... in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default good way for deleting unsed records... - 11-10-2004 , 10:18 PM






Hi,

I'm looking for a good solution to remove unused records in my dimensions.
My users dislike to see unused objects in cube's dimensions and other
prompts in reports.

But the delete command is very slow due to a ton of constraints (to insure
good data quality).

so, any idea? guide?
maybe I can change my database to 1 user only during the delete step?
does I have to change and setup some isolation hint in the delete command?

thanks.

Jerome.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: good way for deleting unsed records... - 11-11-2004 , 12:16 AM






How are you going to identify unused rows?
Are your dimensions views over base tables? If == Yes then change the view
definition

DELETE is slow because it logs every row of the delete. Indexes etc also
need to be juggled around

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote

Quote:
Hi,

I'm looking for a good solution to remove unused records in my dimensions.
My users dislike to see unused objects in cube's dimensions and other
prompts in reports.

But the delete command is very slow due to a ton of constraints (to insure
good data quality).

so, any idea? guide?
maybe I can change my database to 1 user only during the delete step?
does I have to change and setup some isolation hint in the delete command?

thanks.

Jerome.





Reply With Quote
  #3  
Old   
Jéjé
 
Posts: n/a

Default Re: good way for deleting unsed records... - 11-11-2004 , 07:07 AM



I'll identify these rows by executing a lot of queries against "all" my
tables to validate if my row is used.

For example.
my "calendar" table generates dates from 1990 to 2006
but , for the moment I've only data from 2002 to 2005
So, I want to delete dates between 1990 and 2002.
This table is linked to 15 fact tables.

For the moment I don't use views to access my data to process my dimensions.
And doing a join with 15 fact tables starts to become a huge work!

But its one of the solutions to create views.
I also evaluate the option to add a column "used" where (during my DTS
loading process) I'll update this field to Y or N and then use the view
against all "Y" columns.

any other options?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
How are you going to identify unused rows?
Are your dimensions views over base tables? If == Yes then change the
view definition

DELETE is slow because it logs every row of the delete. Indexes etc also
need to be juggled around

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:eTV4rV6xEHA.908 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hi,

I'm looking for a good solution to remove unused records in my
dimensions.
My users dislike to see unused objects in cube's dimensions and other
prompts in reports.

But the delete command is very slow due to a ton of constraints (to
insure good data quality).

so, any idea? guide?
maybe I can change my database to 1 user only during the delete step?
does I have to change and setup some isolation hint in the delete
command?

thanks.

Jerome.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.