Cache the immutable message statement and validate scaling evidence

This commit is contained in:
Artyom
2026-11-05 23:59:54 +03:00
parent 05d69ba6ac
commit 57744c532c
7 changed files with 87 additions and 39 deletions
@@ -18,6 +18,7 @@ from sqlalchemy import (
bindparam,
func,
insert,
lambda_stmt,
literal,
select,
tuple_,
@@ -173,7 +174,7 @@ def post_message() -> Select:
).add_cte(touched)
POST_MESSAGE = post_message()
POST_MESSAGE = lambda_stmt(post_message, enable_tracking=False)
def member_ids() -> Label[Sequence[UUID]]: