Az előadás letöltése folymat van. Kérjük, várjon

Az előadás letöltése folymat van. Kérjük, várjon

SQL Server 2014 CTP2 újdonságok

Hasonló előadás


Az előadások a következő témára: "SQL Server 2014 CTP2 újdonságok"— Előadás másolata:

1 SQL Server 2014 CTP2 újdonságok
4/4/2017 SQL Server 2014 CTP2 újdonságok Horváth Zoltán Local Chapter Leader Professional Association for SQL Server © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 SQL Server tömörítési technikák
4/4/2017 Tartalom SQL Server tömörítési technikák Sorszintű tömörítés Lapszintű tömörítés SQL Server 2012 columnstore indexek Mire jók? Mire nem jók? SQL Server 2014 CTP2 columnstore indexek Clustered! Írható! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 SQL Server tömörítési technikák
Működési elv Sorszintű adattömörítés Lapszintű adattömörítés Pro és kontra

4 SQL Server tömörítési technikák
4/4/2017 SQL Server tömörítési technikák Pro és kontra Előny: alacsonyabb tárigény Tárolási költségek csökkennek I/O műveletek költsége csökken ETL-folyamatok gyorsulhatnak Hátrány: magasabb CPU-használat Lekérdezési idők esetleges növekedését vizsgálni kell Nagyon magas CPU-kihasználtság mellett mérlegelendő

5 SQL Server 2012 columnstore indexek
4/4/2017 SQL Server 2012 columnstore indexek Mire jók? Mire nem jók?

6 SQL Server 2012 columnstore indexek
4/4/2017 SQL Server 2012 columnstore indexek Működési elv A C1..C6 oszlopok a columnstore index különböző adatlap-csoportjain vannak tárolva. Ennek az előnyei a következők: Csak a lekérdezés kiszolgálásához szükséges oszlopok vannak felolvasva (ez általában a facttáblák 15%-nál is kisebb részét jelenti általában) Könnyebb tömöríteni az adatokat, az egy oszloponban tárolt értékek redundanciájának köszönhetően A buffer hit rate-ek magasabb értékeket érnek el, lévén az adatok jól tömörítettek, és a gyakrabban használt mezők gyakrabban lekérdezett részei maradnak a memóriában, a kevésbé érdekesek lapolódnak csak ki A columnstore indexek a Vertipaq technológiát használják, amit az Analysis Services tabuláris modelje esetén, illetve e PowerPivotnál is láthatunk, bár a Vetipaq-ot ma már xVelocity In-Memory Analytics Engine-ként érdemes keresni, ha valaki bővebben szeretne utánajárni. A Database Engine columnstore indexeinek nem kötelező beférniük a memóriába. A különböző oszloprészletek (az ábrán egy pár emelet) szükség szerint kilapolódik. Az SQL Server 2012 columnstore indexei tiszta column store-ok, nem hibridek, lévén egy adatlapon csak egy oszlopból származó értékek szerepelhetnek. Ez az I/O scan teljesítmény és a buffer hit rate növelését segíti elő.

7 SQL Server 2014 columnstore indexek
4/4/2017 SQL Server 2014 columnstore indexek Clustered columnstore indexek Írhatóvá váltak Mi az újdonság SQL Server 2014-ben? Az SQL Serverben két nagyon komoly megkötés volt a columnstore indexek használatánál. Az egyik, hogy csak nonclustered indexeket lehetett így létrehozni, a másik, hogy az indexek létrehozásuk után csak olvashatóak voltak. A nagy újság az, hogy az SQL Server 2014-gyel meg fog jelenni az update-elhető clustered columnstore index, egy új adattábla-tárolási struktúra. Heap, Clustered index, Clustered columnstore index. SQL Server 2014-ben viszont további tárkapacitás-megtakarítás várható attól, hogy maguk a táblák tárolhatóak ebben a struktúrában külön columnstore index létrehozása nélkül. SQL Server 2012-ben még nincs rá mód, hogy INSERT, UPDATE, DELETE vagy MERGE utasításokkal, vagy bulk loaddal direkt módon megváltoztassuk egy columnstore index-szel rendelkező tábla adattartalmát. Partíciót cserélhetünk, vagy kikapcsolhatjuk az indexet, módosíthatjuk a táblát, majd újraépíthetjük az indexet. Igaz azonban az is, hogy a legtöbb adattárház-betöltésnél ez nem jelent különösebb problémát, tekintve az adatbetöltések gyakoriságát.

8 Demó SQL Server tömörítési eljárások
4/4/2017 Demó SQL Server tömörítési eljárások © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 4/4/2017 7:08 PM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 Hangyál Zoltán Principal Database Engineer, SQL Server MCM LogMeIn
4/4/2017 Az SQL Server 2014 adatbázis motorját és teljesítményét érintő újdonságai SQL Server 2014 konferencia Hangyál Zoltán Principal Database Engineer, SQL Server MCM LogMeIn © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 Hogy működik az SQL Server, hol lehet gyorsítani?
4/4/2017 Tartalom Hogy működik az SQL Server, hol lehet gyorsítani? Továbbfejlesztett funkciók Query processing enhancements Managed lock priority Single partition online index rebuild Resource governor Új fejlesztések Buffer pool extension In-memory OLTP © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 Hogyan működik az SQL Server?
Client App TDS TDS Protocol Layer SNI Result Set Command Relational Engine Optimizer Query Tree Cmd Parser Query Plan Query Executor Data Result Storage Engine Transaction Manager Access Methods Buffer Manager Get Page Cached Page Read I/O Buffer Pool D Transaction Log Data Files

13 Hol telik el a legtöbb idő?
Query processing enhancements Managed lock priority Single partition online index rebuild Buffer pool extension Resource governor In-memory OLTP

14 Lekérdezés végrehajtás újdonságai
Új cardinality estimator Jobb minőségű végrehajtási tervek jönnek létre Alapból nincs bekapcsolva, Trace Flag lehet ki-be kapcsolni Compatibility level 120 kell hozzá Incremental statistics for partition SQL 7.0 rowmodctr SQL 2005 colmodctr SQL 2014 particionált tábláknál particionként Parallel SELECT INTO Sokkal gyorsabb párhuzamos adatbetöltés Compatibility level 110 kell hozzá Sys.dm_exec_query_profiles SHOWPLAN XML előfeltétel

15 Managed Lock Priority Particionált tábla SWITCH-nél és Online Index Rebuild-nél megadhatjuk, hogy mi történjen ha másik session-el konfliktus lép fel (Sch-M, S-lock) WAIT_AT_LOW_PRIORITY (MAX_DURATION = <time> [MINUTES] ABORT_AFTER_WAIT = {NONE | SELF | BLOCKERS})

16 Single Partition Online Index Rebuild
Egy partíció újraépítése miközben a tábla folyamatosan elérhető, kivéve egy nagyon rövid ideig az újraépítés elején és végén Managed Lock Priority funkcionalitás elérhető a partíció online újraépítésél is Kevesebb CPU, memória és tárhely a teljes tábla online rebuild-hez képest Kevesebb tranzakciós log keletkezik

17 SSD Buffer Pool Extension
Mozgó alkatrész nélküli SSD diszket lehet használni a buffer pool megtoldásához memory pressure esetén Nincs adatvesztés, mert csak clean page-eket mozgat erre a területre Egyszerűen csak be kell kapcsolni, más változtatást nem igényel ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION ON (FILENAME = 'F:\SSDCACHE\EXAMPLE.BPE‘, SIZE = 50 GB) Módosításhoz: kikapcs, új beállítással bekapcs

18 Resource Governor Különböző terhelések erőforrás felhasználásának súlyozása Resource pool SQL 2008 MIN, MAX MEMORY_PERCENT SQL 2008/2012 MIN, MAX, CAP CPU_PERCENT, AFFINITY SQL 2014 MIN, MAX IOPS_PER_VOLUME Workload group Classification MAX_OUTSTANDING_IO_PER_VOLUME DMV-k és performance counterek tartalmazzák az IO statisztikákat Garantálhatóbb teljesítmény

19 Memory Optimized Data Filegroup
In-Memory OLTP Client App TDS TDS Protocol Layer SNI Result Set Command Relational Engine Native Compiler Optimizer Query Tree Cmd Parser Query Plan Query Executor Query Interop Natively Compiled SPs and Schemas Data Result Storage Engine Transaction Manager Access Methods Buffer Manager Memory Optimized Tables & Indexes Get Page Cached Page Read I/O Buffer Pool D Memory Optimized Data Filegroup Transaction Log Data Files

20 In-Memory OLTP SQL Server-be integrált új szolgáltatás
Az adatok végig a memóriban vannak tárolva, nem kell IO-ra várni Nem 8KB-os lapokon tárolja az adatokat, nincs latch probléma Optimista többverziós konkurenciakezelés, lock nélkül dolgozik Az indexek csak a memóriában léteznek HASH index Új fogalom az adatok tartóssága Natív kódra fordított tárolt eljárások a nagyobb teljesítményért

21 A tárolás egysége a sor Begin Timestamp – insert time
End Timestamp – delete time, a végtelen jelenti az aktuális verziót StatementID – a létrehozó utasítás azonosítója Index mutatók tömbje A kulcs oszlop(ok) és a többi oszlop A táblához tartozó sorokat az index fogja össze, ezért mindig kell egy index Nincs clustered index A módosítások egy törlés-beszúrás párossal jönnek létre a háttérben

22 Memória optimalizált táblák
Natív fordítású eljárás Csak memória alapú táblák Maximum teljesítmény Nem minden T-SQL Mikor használjuk OLTP Teljesítménykritikus esetekben Interpreted T-SQL (InterOP) Memória- és diszk-alapú táblák Nem tud kihasználni minden gyorsítási lehetőséget A teljes T-SQL funkcionalitás elérhető Mikor használjuk Ad hoc lekérdezéseknél Reporting típusú lekérdezéseknél Migráció felgyorsítására Latch Contention probléma elkerülésére

23 4/4/2017 Demó In-Memory OLTP © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

24 4/4/2017 7:08 PM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

25 Függelék


Letölteni ppt "SQL Server 2014 CTP2 újdonságok"

Hasonló előadás


Google Hirdetések