- Issue created by @ayrmax
- 🇬🇧United Kingdom scott_euser
Hi! Thanks for the contribution, can you make a merge request instead so tests run + easier for us maintaining to review/comment. Thank you!
When an indexed entity is deleted, only 10 of its associated chunks are removed from the database. This leaves orphaned chunks behind, which can cause errors when attempting to load the deleted entity.
1. Index an entity that results in more than 10 chunks. 2. Delete the entity. 3. Observe that only 10 chunks are deleted; the remaining chunks persist in the index. 4. Attempt to load the deleted entity, which may lead to errors due to the leftover data.
The deleteItems
function relies on getVdbIds
, which in turn uses querySearch
to retrieve IDs. However, querySearch
limits its results to 10 items, causing incomplete deletion.
I have provided a patch that removes this limit, ensuring all associated chunks are properly deleted when an entity is removed.
Active
1.0
Code
Hi! Thanks for the contribution, can you make a merge request instead so tests run + easier for us maintaining to review/comment. Thank you!