- 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 […]
- 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…
- Elasticsearch – Indexing, Updating and Deleting Documents
The write side. Index, get, update and delete, why choosing your own document id is what makes indexing idempotent, and what near-real-time actually means — the reason a test that indexes and immediately searches finds nothing and looks like a broken query. Then refresh and what it costs, and optimistic concurrency with seq_no and primary_term for the case where two writers race.
- Spring Data Projection
Spring Data query methods usually return one or multiple instances of the aggregate root managed by the repository. However, it might sometimes be desirable to create projections based on certain attributes of those types. Spring Data allows modeling dedicated return types, to more selectively…
- Elasticsearch – Modelling Your Data for Search
The hardest habit to break coming from SQL: stop normalising. One document per thing a user searches for, denormalised on purpose, because a join at query time is exactly the work the index exists to avoid. When nested is worth its cost, why parent/join is almost always the wrong answer, index-per-tenant versus a filter, and how to decide what belongs in the document at all.