Deleting items from Database keeps orphaned chunks

Created on 28 April 2025, 21 days ago

Problem/Motivation

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.

Steps to Reproduce

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.

Proposed Resolution

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.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany ayrmax

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024