aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-30 00:56:09 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-30 00:56:38 +0200
commit71d4c873bd12233b585637404115cfea9462c904 (patch)
treeeded14e0d5ffad139263154701eb6f115ea6b2bc /README.md
parent24bfa86b90f7b9bec886af7e3e4f02fee25ce99c (diff)
downloadgo-oblast-71d4c873bd12233b585637404115cfea9462c904.tar.gz
add ctx arguments to most methods
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 0 insertions, 6 deletions
diff --git a/README.md b/README.md
index aa3fec8..0bc2e9e 100644
--- a/README.md
+++ b/README.md
@@ -28,12 +28,6 @@ The design goals, ordered by priority (most important comes first), are:
- A minimal amount of CPU usage.
- As few library dependencies as possible.
-As a surprising consequence, this set of priorities forced this library to eschew `context.Context` arguments.
-Early benchmarking showed that replacing `QueryRow` with `QueryRowContext` increased allocations by up to 50% and memory allocated by up to 100%.
-The author of this library is still a fan of `context.Context` for things like HTTP requests to external services, where unpredictable delays make a structured cancellation facility vital.
-But this library optimizes for blazing fast OLTP workloads (with maybe a few OLAP queries every once in a while), where not being able to back out of a running query is not that big of a deal because query runtimes should always be short anyway.
-If in doubt, the lack of `context.Context` arguments can be counteracted by setting timeouts on your DB transactions during OLAP workloads.
-
Explicit non-goals include:
- A fully featured API for query construction: