Welcome to
Sign in
|
Help
in
Intrebari generale (forum)
Romanian Section (group)
(Entire Site)
Search
Home
Blogs
External Feeds
Forums
Photos
Downloads
About Us
»
Romanian Section
»
Intrebari
»
Intrebari generale
»
Re: To SHRINK or not to SHRINK
To SHRINK or not to SHRINK
Last post 10-10-2009, 9:53 PM by
cardasim
. 4 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
10-08-2009, 12:55 PM
7649
cardasim
Joined on 07-15-2007
IASI
db_owner
To SHRINK or not to SHRINK
Reply
Quote
Salutare,
Aplicatia la care lucrez foloseste o baza de date in care constant am 20 zile x 2.000.000 = 40.000.000 inregistrari.
In fiecare zi primesc 2.000.000 inregistrari noi si trebuie sa sterg 2.000.000 cele mai vechi.
Pentru asta am un task de mentenanta care ruleaza noaptea (cand sistemul e cam idle), task care pe scurt cuprinde urmatoarele:
- face niste UPDATE-uri
- DELETE cele 2.000.000 inregostrari
- verifica fagmentarea unor indecsi si ii recreeaza daca e cazul
Si acum inrebarea: din punct de vedere al performantei sistemului (nu a dimensiunii fisierelor bazei de date) are sens sa fac SHRINK la fisierele de date dupa toate aceste operatiuni? Ajuta sau dimpotriva?
Multumesc.
Florin Cardasim
Filed under:
SHRINK
Report abuse
10-08-2009, 1:38 PM
7650
in reply to
7649
Diana
Joined on 03-21-2006
sysadmin
Re: To SHRINK or not to SHRINK
Reply
Quote
"Teoria" si ceva experienta proprie spun ca e bine sa te feresti sa faci "shrink on a regular basis". "Autoshrink" are asigurat un loc in categoria "evil". Argumentatii extra:
http://www.karaszi.com/SQLServer/info_dont_shrink.asp
http://technet.microsoft.com/en-us/magazine/2008.08.database.aspx?pr=blog
Report abuse
10-09-2009, 10:17 PM
7664
in reply to
7650
cardasim
Joined on 07-15-2007
IASI
db_owner
Re: To SHRINK or not to SHRINK
Reply
Quote
Atunci e clar: not to SHRINK!
Din nou, multumesc, Diana.
Florin Cardasim
Report abuse
10-09-2009, 11:52 PM
7666
in reply to
7664
Diana
Joined on 03-21-2006
sysadmin
Re: To SHRINK or not to SHRINK
Reply
Quote
You're welcome...
Do not shrink on a regular basis...
Uneori probabil vei avea nevoie. De exemplu, vezi "punctul 8" din
http://www.sqlskills.com/BLOGS/KIMBERLY/category/Transaction-Log.aspx#p3
Report abuse
10-10-2009, 9:53 PM
7668
in reply to
7666
cardasim
Joined on 07-15-2007
IASI
db_owner
Re: To SHRINK or not to SHRINK
Reply
Quote
Clar, retinut, nu "on a regular basis"
Florin Cardasim
Filed under:
SHRINK
Report abuse