30
SQL Server 2014: Ready. Steady. GO! Boris Hristov SoftUni Conf 2015, 22.03.2015

SQL Server 2014: Ready. Steady. Go!

Embed Size (px)

Citation preview

SQL Server 2014:Ready. Steady. GO!

Boris HristovSoftUni Conf 2015, 22.03.2015

So who am I?

@BorisHristov

3ways to dramatically speed your app

time

coo

lnse

sSession’s Timeline

1Delayed Durability

Durability

A

C

I

D

Atomicity

Isolation

Consistency

Durability

Transaction’s lifecycle

Data pages are located in,

or read into, the buffer cache

and then modified

2

Modification is recorded in transaction log on disk

Later, checkpoint writes

dirty pages to database

Buffer Cache

4

3

Here’s the reason why it’s slow

Buffer Cache

Transaction’s lifecycle

Data pages are located in,

or read into, the buffer cache

and then modified

2

Modification is recorded in transaction log on disk3

Later, checkpoint writes

dirty pages to database4

Yes, you can lose data!

DEMO Delayed Durability

2Table Partitioning?

Numbers

0

10 b.

Partition 2

1 b.

3 b.

Partition 1

0

1 b.

Partition 3

3 b.

10 b.

So what’s partitioning all about?

Numbers

0

8000

Partition 2

2501

4000

Partition 1

0

2500

Partition 3

4001

8000

Why is partitioning cool and not cool?When availability matters

(online partition-level maintenance)

Numbers

0

10 b.

Partition 2

1 b.

3 b.

Partition 1

0

1 b.

Partition 3

3 b.

10 b.

When query performance matters(incremental statistics update)

DEMO Table Partitioning Improvements

3Hekaton(In-Memory OLTP)

Somewhere in Redmond…(there was a monologue happening)

- OK, so SQL server is nowadays delivering incredible performance

- Can we, however, make it even faster?

- Can we make it… really fast?

- …

- Like… blazingly fast?

- …

- Mind-blowingly fast…

Credits: Top Gear

It turned out, they can.

DEMO Hekaton (In-Memory OLTP)

time

coo

lness

Session’s Timeline

DEMO Hekaton (In-Memory OLTP)

The Limitations

No foreign keys

No ALTER TABLE is allowed

No Constraints

No indexes after the table is created…

Just to name a few…

vNext

So you want even more performance?

Delayed Durability

Table Partitioning

Hekaton

Who said testing is important?