jellyfin-kodi/jellyfin_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
..
database Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
dialogs Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
entrypoint Revert "Replaced debug output of json.dumps with an indirection to lazy __str__." 2020-02-16 22:22:23 +00:00
helper Revert "Replaced debug output of json.dumps with an indirection to lazy __str__." 2020-02-16 22:22:23 +00:00
jellyfin Revert "Replaced debug output of json.dumps with an indirection to lazy __str__." 2020-02-16 22:22:23 +00:00
objects Resort to the expensive database lookup only if the person exists in the 2020-02-18 00:45:16 +00:00
__init__.py Begin restructing, fixed some issues related to movement 2019-11-07 22:58:44 +01:00
client.py Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
connect.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
downloader.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
full_sync.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
library.py Fixing indentation 2020-02-13 19:43:29 -05:00
monitor.py Revert "Replaced debug output of json.dumps with an indirection to lazy __str__." 2020-02-16 22:22:23 +00:00
player.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
setup.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
views.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
webservice.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00