Skip to content

For a X tuples update, do it in one query instead of X ones #59

@Dragonfly911117

Description

@Dragonfly911117

As it reduces the overhead caused by db_processing

some thing like this

UPDATE products
SET price =
    CASE 
        WHEN category_id = 1 THEN 19.99
        WHEN category_id = 2 THEN 24.99
        ELSE 14.99  -- Default value if no condition matches
    END
WHERE supplier_id = 5; -- Filter condition

Metadata

Metadata

Assignees

Labels

OptimizationTime for space or space for time thing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions