2
1
Fork
You've already forked ddc
0

delay at first program start after (re)boot of computer #1

Closed
opened 2024年08月25日 19:29:50 +02:00 by ojrandom · 1 comment

Loading of pictures causes a long delay

  • when the program is started for the first time after a (re)boot of the computer
  • not when the program is closed and started again

See comment of 9fc1be4aac

The sql that is is executed looks like this...

SELECT DISTINCT pictures.* FROM pictures JOIN faces ON pictures.id=faces.file_id WHERE faces.model='Facenet512' AND faces.detector= 'yolov8' AND has_errors!=1 AND faces.unknown!=1 AND faces.w>0 AND faces.ignore!= '1' AND date_shot >= DATE('2024年08月01日') AND date_shot <= DATE('2024年12月01日') ORDER BY time_shot DESC ;

SQLite executes the sql above very slowly after a (re)boot of the computer and very quickly it the program is closed and started again.

Does anybody know why?

Loading of pictures causes a long delay - when the program is started for the first time after a (re)boot of the computer - not when the program is closed and started again See comment of https://codeberg.org/ojrandom/ddc/commit/9fc1be4aac79f352e64a64d021acc810072a4444 The sql that is is executed looks like this... `SELECT DISTINCT pictures.* FROM pictures JOIN faces ON pictures.id=faces.file_id WHERE faces.model='Facenet512' AND faces.detector= 'yolov8' AND has_errors!=1 AND faces.unknown!=1 AND faces.w>0 AND faces.ignore!= '1' AND date_shot >= DATE('2024年08月01日') AND date_shot <= DATE('2024年12月01日') ORDER BY time_shot DESC ;` SQLite executes the sql above very slowly after a (re)boot of the computer and very quickly it the program is closed and started again. **Does anybody know why?**
Author
Owner
Copy link

0ffb989765

Fixed with the above statement

https://codeberg.org/ojrandom/ddc/commit/0ffb989765407da424b1b158278a0ba13caa57d2 Fixed with the above statement
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ojrandom/ddc#1
Reference in a new issue
ojrandom/ddc
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?