Welcome to Sign in | Help
in Search

To SHRINK or not to SHRINK

Last post 10-10-2009, 9:53 PM by cardasim. 4 replies.
Sort Posts: Previous Next
  •  10-08-2009, 12:55 PM 7649

    To SHRINK or not to SHRINK

    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:
  •  10-08-2009, 1:38 PM 7650 in reply to 7649

    Re: To SHRINK or not to SHRINK

    "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
  •  10-09-2009, 10:17 PM 7664 in reply to 7650

    Re: To SHRINK or not to SHRINK

    Atunci e clar: not to SHRINK!

    Din nou, multumesc, Diana.

    Florin Cardasim
  •  10-09-2009, 11:52 PM 7666 in reply to 7664

    Re: To SHRINK or not to SHRINK

    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
  •  10-10-2009, 9:53 PM 7668 in reply to 7666

    Re: To SHRINK or not to SHRINK

    Clar, retinut, nu "on a regular basis" Smile

    Florin Cardasim
    Filed under:
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems