orm-benchmarks icon indicating copy to clipboard operation
orm-benchmarks copied to clipboard

SQLObject Update Whole benchmark - use obj.set

Open scyclops opened this issue 3 weeks ago • 0 comments

Instead of:

https://github.com/tortoise/orm-benchmarks/blob/ff2a5875f802ac0c6ea1bee57eb87efcc5b052cb/benchmarks/sqlobject/test_i.py#L14-L15

Use obj.set like below for better performance from SQLObject:


obj.set(
  level=choice(LEVEL_CHOICE),
  text=f"{obj.text} Update"
)

scyclops avatar Dec 06 '25 05:12 scyclops