jellyfin-kodi/jellyfin_kodi/objects/kodi
Chuddah bdd9a8f727 Resort to the expensive database lookup only if the person exists in the
database.

The database is configured such that each person name within the table
has to be unique. Attempting to add a person which already exists causes
an IntegrityError exception to be thrown. This is a less costly
operation than the cursor.execute and cursor.fetch operations.

Increase performance by reverting to the expensive calls of fetching if
adding a person fails.

This pattern could also be applied to other tables within the database.
2020-02-18 00:45:16 +00:00
..
__init__.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
artwork.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
kodi.py Resort to the expensive database lookup only if the person exists in the 2020-02-18 00:45:16 +00:00
movies.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
music.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
musicvideos.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
queries.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
queries_music.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
queries_texture.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
tvshows.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00