Makes the app wait until Postgres actually answers, not merely until its container has started.
Tag
Snippets tagged c
Prints the size each layer adds, which usually points straight at the offending RUN line.
Ranks statements by total time spent. Needs the pg_stat_statements extension enabled.
Uses a window function to number the duplicates and removes everything but the first of each group.
On Postgres 11 and later a nullable column with a default is a metadata-only change. Adding NOT NULL afterwards is the part that needs care.
Lists indexes that have never been scanned, which are pure write cost. Check against a long uptime before dropping any.
Runs at most once per interval but still fires once more after the last event, so the final state is never dropped.
Backs off on each failure and adds jitter, so a recovering service is not hit by every client at the same moment.
fetch has no timeout of its own. AbortSignal.timeout is the short way to give it one.
Keeps a fixed number of jobs in flight rather than firing a thousand requests at once.
structuredClone handles Dates, Maps, Sets and cycles, which JSON round-tripping quietly destroys.
The modern API needs a secure context and a real user gesture, so the failure path matters as much as the success one.