- 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.
- HTML Doctypes
A DOCTYPE is an instruction to the web browser about the version of HTML in which the web page is written. A DOCTYPE declaration appears at the top of a web page before all other elements. According to the HTML specification or standards, every HTML document requires a valid document type…
- Postgres – The Production Checklist
What has to be true before the database is in front of users. Connection pooling and why max_connections is not the answer, the four settings worth changing from the defaults, autovacuum and how to see whether it is keeping up, pg_dump versus physical backup and point-in-time recovery, the monitoring queries to have ready before you need them, and what managed Postgres does and does not do for you.