photoprism/internal/entity
Michael Mayer 174e6d53c9 Backend: Use FirstOrCreate() instead of Create() when adding new photos
Not perfect as metadata should rather be merged. Ideally some kind of mutex avoids database conflicts / locks / errors in the future. Right now, we're (intentionally) using the database as "mutex" so that the application code needs less complexity. This is especially problematic on powerful servers with many CPUs and index workers. See also issue #392.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-07-10 17:09:39 +02:00
..
account_fixtures.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
account_test.go Backend: Add unit tests for internal/entity 2020-07-08 15:25:33 +02:00
account.go
album_fixtures_test.go
album_fixtures.go
album_test.go Backend: Add unit tests for internal/entity 2020-07-08 18:09:18 +02:00
album.go Replace date picker with day, month & year inputs #274 #358 2020-07-06 07:41:33 +02:00
camera_fixtures_test.go
camera_fixtures.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
camera_test.go Backend: Add unit tests for internal/entity 2020-07-09 11:27:44 +02:00
camera.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
category_fixtures.go
category_test.go
category.go
const.go Replace date picker with day, month & year inputs #274 #358 2020-07-06 07:41:33 +02:00
country_fixtures.go
country_test.go Backend: Add unit tests for internal/entity 2020-07-08 18:09:18 +02:00
country.go Try fetching country again if create fails #357 2020-07-07 16:56:02 +02:00
db.go
details_fixtures_test.go
details_fixtures.go
details_test.go Backend: Add unit tests for internal/entity 2020-07-09 11:27:44 +02:00
details.go Concurrency fix for photo details #357 2020-07-09 17:45:56 +02:00
entity_test.go
entity.go
error.go Logs: Improve event log and messages in i18n package 2020-07-07 10:51:55 +02:00
file_fixtures.go Backend: Add unit tests for internal/entity 2020-07-09 11:27:44 +02:00
file_share_fixtures_test.go
file_share_fixtures.go
file_share_test.go Backend: Add unit tests for internal/entity 2020-07-09 11:50:58 +02:00
file_share.go
file_sync_fixtures_test.go
file_sync_fixtures.go
file_sync_test.go Backend: Add unit tests for internal/entity 2020-07-09 11:50:58 +02:00
file_sync.go
file_test.go Backend: Add unit tests for internal/entity 2020-07-09 11:27:44 +02:00
file.go Logs: Improve event log and messages in i18n package 2020-07-07 10:51:55 +02:00
fixtures.go Disable account page in public mode 2020-06-30 08:50:44 +02:00
folder_fixtures.go
folder_test.go Backend: Add unit tests for internal/entity 2020-07-09 12:24:44 +02:00
folder.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
keyword_fixtures_test.go
keyword_fixtures.go
keyword_test.go Backend: Add unit tests for internal/entity 2020-07-09 15:37:30 +02:00
keyword.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
label_fixtures_test.go
label_fixtures.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
label_test.go Backend: Add unit tests for internal/entity 2020-07-09 15:37:30 +02:00
label.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
lens_fixtures_test.go
lens_fixtures.go
lens_test.go Backend: Add unit tests for internal/entity 2020-07-09 16:46:13 +02:00
lens.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
link_fixtures.go Backend: Add unit tests for internal/entity 2020-07-09 16:46:13 +02:00
link_test.go Backend: Add unit tests for internal/entity 2020-07-09 16:46:13 +02:00
link.go Sharing: Refactor link entity and database columns #367 #18 2020-06-28 14:52:26 +02:00
location_fixtures_test.go Backend: Add unit tests for internal/entity 2020-07-10 10:29:56 +02:00
location_fixtures.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
location_test.go Backend: Add unit tests for internal/entity 2020-07-10 10:29:56 +02:00
location.go Try fetching country again if create fails #357 2020-07-07 16:56:02 +02:00
password_test.go Backend: Add unit tests for internal/entity 2020-07-10 10:58:06 +02:00
password.go Improve UX of account page 2020-06-30 09:06:59 +02:00
person_test.go Backend: Add unit tests for internal/entity 2020-07-10 13:57:51 +02:00
person.go Replace date picker with day, month & year inputs #274 #358 2020-07-06 07:41:33 +02:00
photo_album_fixtures_test.go
photo_album_fixtures.go
photo_album_test.go Backend: Add unit tests for internal/entity 2020-07-10 15:06:37 +02:00
photo_album.go
photo_counts_test.go
photo_counts.go
photo_fixtures_test.go
photo_fixtures.go Backend: Refactor photo details entity #379 #357 2020-07-06 19:15:57 +02:00
photo_keyword_fixtures.go
photo_keyword_test.go
photo_keyword.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
photo_label_test.go Backend: Add unit tests for internal/entity 2020-07-10 15:15:56 +02:00
photo_label.go Concurrency fixes for cameras, lenss, folders, keywords, and labels #357 2020-07-07 20:44:33 +02:00
photo_location_test.go Backend: Add unit tests for internal/entity 2020-07-10 15:06:37 +02:00
photo_location.go
photo_optimize_test.go Backend: Add unit tests for internal/entity 2020-07-10 15:06:37 +02:00
photo_optimize.go Fix time difference threshold in Photo.EstimatePlace() 2020-07-07 13:18:34 +02:00
photo_quality_test.go
photo_quality.go Backend: Refactor photo details entity #379 #357 2020-07-06 19:15:57 +02:00
photo_test.go Backend: Fix Photo.GetDetails() 2020-07-06 20:20:03 +02:00
photo_yaml_test.go Backend: Add unit tests for internal/entity 2020-07-10 15:06:37 +02:00
photo_yaml.go Load existing photo if uid was found in YAML sidecar file #357 2020-07-07 12:20:38 +02:00
photo.go Backend: Use FirstOrCreate() instead of Create() when adding new photos 2020-07-10 17:09:39 +02:00
place_fixtures_test.go
place_fixtures.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
place_test.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
place.go Try fetching places and location again if create fails #357 2020-07-07 16:40:29 +02:00
time_test.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
time.go Sharing: Link expiration, view counter and permissions #18 2020-06-26 12:16:13 +02:00
views.go