Skip to content

Handle foreign key constraints during sharding key updates #899

@levkk

Description

@levkk

Description

At the very least, block a sharding key update if it moves the row and it has a foreign key ON DELETE constraint. They typically won't be correctly executed, i.e. SET NULL is bad and CASCADE is bad. The right way to handle this is to fetch all corresponding rows and move them as well, but that's a big job.

So for milestone 1.0, let's just return an error; we have the schema with FKs loaded, we can check if the UPDATE should be allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bleeding edgeExciting new frontier stuff.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions