- Elasticsearch – Bulk Indexing and Keeping It in Sync
Indexing 200 documents one call at a time took 526ms; the same 200 in one bulk request took 47ms. The bulk API, its partial-failure model — a 200 response that contains failures — and helpers.bulk. Then the harder half: how a Postgres row and a search document stay in step. Index after the commit and never before, why a failed index must not fail the write, and the outbox that retries it.
- Git cherry-pick
The cherry-pick command is used to apply a commit from one branch to another branch. Let’s say you have a feature branch that you are working on that have two stories. You finished the two stories but only need to push the first story to master. You have one commit for story number one and […]
- MySQL Dump
Most of the times, you want to backup your databases to have backups to prevent loosing data. If you don’t backup your databases, a code bug or a server/disk failure could be a disaster. To help save you lots of time and frustration, it is strongly recommended that you take the precaution of…
- MySQL Deadlock
A deadlock is a situation where different transactions are unable to proceed because each holds a lock that the other needs. Because both transactions are waiting for a resource to become available, neither ever release the locks it holds. A deadlock can occur when transactions lock rows in…
- Javascript Fundamentals Part 1
Javascript is case-sensitive Everything in JavaScript including variables , function names, class names, and operators are case-sensitive. It means that counter and Counter variables are different. Comments JavaScript supports both single-line (//) and block(/**/) comments. // This is a single line…