perf: SqlHashJoin Go RTL — 3-way JOIN 4.2s→61ms (69x)

Go-native multi-table hash join bypasses per-row PRG overhead.
TryGoJoin detects equi-join + plain-col SELECT, aggregate cols
get placeholder. 2-way 73→3ms, 3-way 3.9s→61ms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 07:16:09 +09:00
parent 53aaa4b69a
commit 5fc9c3bbea
4 changed files with 353 additions and 1 deletions

View File

@@ -548,7 +548,7 @@ var rtlFunctions = map[string]bool{
"DBCREATE": true, "DBINFO": true, "DBORDERINFO": true, "DBSETINDEX": true,
// FiveSql2 hybrid hot-path RTL (pcode + Go-native scan)
"PCCOMPILE": true, "PCEVAL": true, "SQLSCAN": true, "SQLEACH": true,
"SQLHASHBUILD": true,
"SQLHASHBUILD": true, "SQLHASHJOIN": true,
// Field metadata + index creation
"FIELDTYPE": true, "FIELDLEN": true, "FIELDDEC": true,
"ORDCREATE": true, "DBCREATEINDEX": true, "DBCLEARINDEX": true,