Resort to the expensive database lookup only if the person exists in the (#200)

* Added profiling info

* Resort to the expensive database lookup only if the person exists in the
database.

* Prevent any access to the people database unless a person must be added.

* Bulk operations where possible.

* Prepare for a new install and the table not existing.
This commit is contained in:
Damien Ruscoe 2020-02-20 00:28:47 +00:00 committed by GitHub
parent 4974d823d4
commit 756991e9ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 14 deletions

View file

@ -88,6 +88,10 @@ SELECT strFilename
FROM files
WHERE idFile = ?
"""
get_all_people = """
SELECT name, actor_id
FROM actor
"""
get_person = """
SELECT actor_id
FROM actor