https://bugs.kde.org/show_bug.cgi?id=460064

--- Comment #9 from Jens <jens-bugs.kde....@spamfreemail.de> ---
> When a collection is rescanned, you cannot ensure the order of the images. 
> How do you want to match an item to the parent item if the parent item hasn't 
> even been scanned yet?

The easy solution would be to scan twice.
In the first round skip all images which have a parent_id.
Then scan again, and skip all images already scanned (where parent_id != NULL).
This guarantees that you'll get all parents before you scan the first child.

The performance hit would probably be small because every image is still only
touched once and sorting needs to be done anyway depending on user choice.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to