On.Programming

For most of us, programming (or more generally – software development) is all the life is about.

IT Hares are not different. And they have more than just quite a few bits to share about programming…

OLTP DB Optimizations 102 – Group Commits

October 17, 2017 by “No Bugs” Bunny

Group Commits

Quote:

if we can commit several transactions at the same time – RDBMS needs to fsync() our DB logs to physical disks only once

Another Quote:

if going our preferred way of single-writing-DB connection – make sure NOT to use RDBMS-level Group Commit

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

Read more

OLTP DB Optimizations 102 –100% Coherent App-Level Cache for Single-writing-DB-connection

October 10, 2017 by “No Bugs” Bunny

Caching

Quote:

with our app-level cache, we’re guaranteed to get exactly the same results as if we’d be querying the underlying database.

Another Quote:

why settle for invalidation when we can modify cache accordingly, saving on the extra DB request when we’re dealing with the same USER again?

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

Tagged With: DatabaseOLTPCache
Read more

OLTP Optimization Cheat Sheets for dbdevs and DBAs

September 5, 2017 by “No Bugs” Bunny

Execution Plans with no index, single-column index, and multi-column index

Quote:

Have I already mentioned that you DO need to understand execution plans?

Another Quote:

DO keep in mind that maintaining indexes has its own cost

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

Read more

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