perf(sql): jit = off на построителях и пути правки (AURORA-1850)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c236dc0e81
commit
51b349299f
File diff suppressed because one or more lines are too long
@ -452,3 +452,18 @@ def test_ahr_delta_includes_sub_sub_item_for_depth4_limit(client, headers, db_ex
|
||||
assert any(
|
||||
row[0] == "SUB_SUB_ITEM" and json.loads(row[3])["header"]["expense_item_id"] == eid for row in delta
|
||||
), "в дельте нет SUB_SUB_ITEM статьи глубины 4"
|
||||
|
||||
|
||||
JIT_OFF_FUNCS = ("v_form2_sheet_sections", "v_form1_sheet_sections",
|
||||
"_form_affected_rows", "get_form2_ahr_satellite_delta")
|
||||
|
||||
|
||||
def test_jit_off_on_builders_and_edit_path(db_exec):
|
||||
rows = db_exec(
|
||||
"""SELECT p.proname, COALESCE(p.proconfig, '{}') FROM pg_proc p
|
||||
JOIN pg_namespace n ON n.oid = p.pronamespace
|
||||
WHERE n.nspname = 'v3' AND p.proname = ANY(CAST(:names AS text[]))""",
|
||||
names=list(JIT_OFF_FUNCS))
|
||||
assert {r[0] for r in rows} == set(JIT_OFF_FUNCS)
|
||||
missing = [r[0] for r in rows if "jit=off" not in r[1]]
|
||||
assert not missing, f"нет SET jit = off: {missing}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user