Welcome to Sign in | Help
in Search

SIMPLE vs FULL recovery model - performance of write operations

Last post 09-15-2009, 11:11 AM by sageata2002. 5 replies.
Sort Posts: Previous Next
  •  09-09-2009, 11:06 AM 7581

    SIMPLE vs FULL recovery model - performance of write operations

    A facut cineva teste care sa compare performanta la scriere intr-o baza de data cu recovery model FULL versus SIMPLE?
    Nu ma intereseaza "back in time restore" sau alte avantaje ale modelului FULL, ci strict performanta la scriere (la citire ma astept sa nu fie diferente) si durata cat mai scurta a transactiilor.
    Florin Cardasim
    Filed under:
  •  09-09-2009, 11:57 AM 7584 in reply to 7581

    Re: SIMPLE vs FULL recovery model - performance of write operations

    Nu am făcut teste, dar mă aştept ca performanţa să fie cam aceeaşi, deoarece datele se scriu în transaction log (şi pentru recovery model-ul FULL şi pentru SIMPLE) la toate operaţiile normale (poate cu excepţia celor bulk-logged). Diferenţa este că la recovery model-ul SIMPLE, datele din transaction log pot fi suprascrise imediat ce tranzaţia a fost comisă (şi astfel nu mai creşte în continuu fişierul). Eventualul avantaj că se scrie în acelaşi loc în fişier nu este relevant pentru că la fiecare commit trebuie să se facă flush pt write cache-ul log-ului (pentru a se asigura durabilitatea transacţiilor), indiferent de recovery model.

    Răzvan
  •  09-09-2009, 12:22 PM 7586 in reply to 7584

    Re: SIMPLE vs FULL recovery model - performance of write operations

    rsocol:
    mă aştept ca performanţa să fie cam aceeaşi, deoarece datele se scriu în transaction log (şi pentru recovery model-ul FULL şi pentru SIMPLE) la toate operaţiile normale (poate cu excepţia celor bulk-logged). Diferenţa este că la recovery model-ul SIMPLE, datele din transaction log pot fi suprascrise imediat ce tranzaţia a fost comisă (şi astfel nu mai creşte în continuu fişierul).

    Good point! Multumesc, Razvan.
    Florin Cardasim
    Filed under:
  •  09-09-2009, 2:54 PM 7588 in reply to 7586

    Re: SIMPLE vs FULL recovery model - performance of write operations

    Insa poti castiga daca log-ul este pe un alt HDD.

    Cătălin D.
  •  09-10-2009, 9:35 AM 7590 in reply to 7588

    Re: SIMPLE vs FULL recovery model - performance of write operations

    Vezi si
    http://www.sqlskills.com/BLOGS/KIMBERLY/post/8-Steps-to-better-Transaction-Log-throughput.aspx
  •  09-15-2009, 11:11 AM 7608 in reply to 7584

    Re: SIMPLE vs FULL recovery model - performance of write operations

    Trebuie sa subliniez excelentul link furnizat de diana, mai ales ca unele afirmatii de aici par a fi usor inexacte, sau mai degraba trunchiate (datele din transaction log pot fi suprascrise, dar asta se inampla in anumite conditii).

    De asemenea, pot sa va recomand http://sqlskills.com/articles.asp , unde veti gasi linkurile catre niste articole excelente scrise de Paul Randall, precum si SQL Server 2008 Internals (sau pentru 2005: Inside SQL Server 2005: The Storage Engine) de la Microsoft Press.

    toate cele bune,
    calin

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems