Viewing profile — vladich
vladich
HN member- Joined
- Mon, Aug 20, 2012, 6:17 PM UTC
- HN karma
- 68
- Public activity
- 43 items
- HN profile
- View on Hacker News ↗
About vladich
No profile information was provided.
Recent public activity
-
comment
Comment #47290894
If they count only query execution time, not everything else, it would make sense though. It also could be practical, if your system runs just a few predefined and very optimized q…
-
comment
Comment #47276502
Considering it's just s single Phd student who does this work, I don't believe such a task can be realistically accomplished, even as a PoC / research.
-
comment
Comment #47276478
Then why they write the opposite?
-
comment
Comment #47272046
That's all great, but sadly impractical. I looked at one of the first statements: > GenDB is an LLM-powered agentic system that decomposes the complex end-to-end query processing a…
-
comment
Comment #47269345
The idea with parallel compilation is interesting. Worth considering, in some cases. The only problem with it is the same as too much parallelization - you can exhaust your CPU res…
-
comment
Comment #47268820
Added Windows (x86_64 for now) support
-
comment
Comment #47267226
It's definitely different, and for Postgres specifically, they may complement each other. SLJit can be used for low latency queries where codegen time is more important than optimi…
-
comment
Comment #47267128
I have a test of 200Kb query that AsmJit takes 7 seconds to compile (that's not too bad both LLVM and MIR take ~20s), while sljit does it in 50ms. 200Kb is a pathological case, but…
- comment
-
comment
Comment #47266345
You can't get a plan cache without a prepared statement, but you can get a prepared statement without a plan cache. It's not the same thing, and in most cases in Postgres prepared …
-
comment
Comment #47265829
SLJIT is a bit smarter than just to use hardcoded registers. It's multi-platform anyway, so it uses registers when they are available on the target platform, if not it will use mem…
-
comment
Comment #47265780
Good point about SIMD opportunities though - it's something other 2 JITs lack.
-
comment
Comment #47265158
There are other issues with that auto-allocation. I tested all 3 backends on very large queries (hundreds of KBs) per query. Performance of all of them (+LLVM, but -sljit) was abys…
-
comment
Comment #47265104
If you think I'm trying to "gotcha" you, you're mistaken. I'm past time I would care about that. It was simply a (apparently failed) education opportunity. Be well.
-
comment
Comment #47260820
Sure, but that's not the main issue. If you add a global cache, it will have only a marginal value. There are Postgres extensions / forks with global cache and they are not wildly …
-
comment
Comment #47260743
The fact that you plan and execute query by query?
-
comment
Comment #47258967
Interesting... AsmJit is pretty fast for compilation, but about 3x than sljit. The only way I can see how to make it fast enough, in theory (i.e. without slowing down point-lookup …
-
comment
Comment #47258919
Sure, but not more than one query per file
-
comment
Comment #47258370
That's exactly what I said above - just turn this thing off. The reason is that even if your generic plan is better than 5 custom plans before it, that doesn't guarantee much. With…
-
comment
Comment #47258161
It will be added soon
-
comment
Comment #47258152
It's not useful for sub-millisecond queries like point lookups, or other simple ones that process only a few records. sljit option starts to pay off when you process (not necessari…
-
comment
Comment #47257269
https://www.postgresql.org/docs/current/runtime-config-query... and then https://www.postgresql.org/docs/current/sql-prepare.html Read carefully about "plan_cache_mode" and how it …
-
comment
Comment #47253412
There are reasons for that, it's useful in a very narrow set of situations. Postgres cached plans exist for the same reason. If you're claiming Oracle and MSSQL do _much_ better in…
-
comment
Comment #47252932
You make some unsubstantiated claims here. I assure you that it isn't as simple as you claim. And what Postgres does here is (mostly) the right thing, you can't do much better. You…
-
comment
Comment #47251566
I didn't say it can cache between processes. The problem is not caching between processes, it's that caching itself is not very useful, because the planner creates different plans …