django-elasticsearch-dsl icon indicating copy to clipboard operation
django-elasticsearch-dsl copied to clipboard

Duplicated listings on save errors

Open yatahaze opened this issue 2 years ago • 0 comments

I had a background scheduled task that was saving an object that was being indexed to ES. It was erroring. On every error, due to OneToOneField rules and such, it was generating new objects with new IDs on every save/fail, replacing the original. On my ES index, every instance was indexed and left behind (2400+ times).

Is there a way I can avoid this or is this a bug?

yatahaze avatar Mar 30 '22 19:03 yatahaze