Skip to content

Race Condition: Inserting two or more records with the same linked record causes only 1 record to be linked. #1860

@dkindlund

Description

@dkindlund

Describe the bug
Through the Teable API, if I create two records at the same time where each record is linked to the same record in another table, only one of the linkages will be preserved. The other created record will not have a linkage created.

Let's say I have two tables in the same base:

Table A: no records
Table B:

  • Record B1

Next, at the same time, I create two records in Table A called A1 and A2 at the same time. And both A1 and A2 have a linkage to B1.

Both A1 and A2 records will be created, but only the (A1, B1) or (A2, B1) linkage will exist -- not both.

This is what I'm seeing from the change history on record B1:

Image

If this were working correctly I should instead see something like this instead for the most recent entry:

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions