Tagged With: Database

Understanding Correlated and Uncorrelated Sub-queries in SQL

August 24, 2017 by “No Bugs” Bunny


Quote:

A correlated sub-query is a type of query, where inner query depends upon the outcome of the outer query in order to perform its execution.

Another Quote:

Correlated sub-queries are slower.

Filed under: On.ProgrammingTips and Tricks

Tagged With: SQLDatabase
Read more

OLTP DB Optimizations 101 - Thinking in Terms of Execution Plans

August 22, 2017 by “No Bugs” Bunny

OLTP DB Optimizations 101 - Thinking in Terms of Execution Plans - Post preview image

Quote:

to realize how our queries are working – we need to start thinking in terms of so-called “execution plans”.

Another Quote:

it can be faster to use Table Scan rather than Index-Scan+fetch over such a low-selectivity index

Filed under: Book: D&D of MOGs1st beta of Vol. VII-IX

Read more

Scaling Stateful Objects

June 27, 2017 by “No Bugs” Bunny

Scaling Stateful Objects - Post preview image

Quote:

it is DB which is usually The Bottleneck™ – it means that we’re saving this enormous amount of load, exactly where it really matters.

Another Quote:

as discussed above, the real-world task is always about scaling the whole system, including database; and in this regard Stateless-App-based systems exhibit significant problems.

Filed under: Book: D&D of MOGs1st beta of Vol. VII-IXOn.System ArchitectureDistributed systems

Read more

Databases and RAIDs

May 30, 2017 by “No Bugs” Bunny

Databases and RAIDs - Post preview image

Quote:

for quite a few applications out there, the most important feature of the RAID is not even redundancy, but greatly improved write latency. Moreover – this is the thing which we cannot possibly get from software RAID (!).

Another Quote:

As a rule of thumb – I am trying to keep the size of OLTP DB small enough to fit into RAM of the OLTP DB Server.

Filed under: Book: D&D of MOGs1st beta of Vol. VII-IX

Read more