mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-29 04:16:12 +00:00
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:
parent
4974d823d4
commit
756991e9ec
2 changed files with 40 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue