Vincent Giersch
05/17/2025, 5:44 PMreference
in a collection schema, or is it a bad idea?
Let's say I have:
• Collection a_1
with alias a
• Collection b_1
with alias b
and in the schema a reference to the alias a
(and not a_1
)
I delete the collection b_1
to re-index it as b_2
(after another issue), and I update the index b
.
Now, I cannot insert anything anymore into a
, Typesense returns following error:
Server said: Collection `b_1` with async_reference to the collection `a_1` not found. RequestMalformed: Request failed with HTTP code 400
I have the feeling that due to the async reference from b_1
to a
, there is an internal reference from a_1
to b_1
(the other direction) that was never cleaned, and now the collection a_1
is broken until I delete it.
Thanks!