Does postgrest cache? Help with broken benchmark #4311
Unanswered
cptwunderlich
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @cptwunderlich, thanks for updating the benchmark 🙏
Nope, we don't. Maybe |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
Via some reddit discussion, I was made aware of the Techempower Framework Benchmarks. Looking through it, I found that most of the Haskell benchmarks were derelict.
Now, let's not discuss whether these benchmarks are good or bad. I just wanted to play around a bit with this.
Here is my PR: TechEmpower/FrameworkBenchmarks#10064
The "Fortunes" benchmark fails with this message:
It uses pg_stats to get this metric, AFAIK. So I'm wondering, how that is possible? Does PostgREST cache results internally?
Is there a way to circumvent this?
You can see for yourselves by checking out the PR.
Running the benchmark:
tfb --mode verify --test postgrest
There is also
tfb --mode debug --test postgrest
to start a server and leave it running for debugging (i.e., you can make requests to the server).Beta Was this translation helpful? Give feedback.
All reactions