1
Fork 0
photoview/api/graphql/resolvers
Phlogi f093827bde
Fix slow query in getting media of a face by using another join
The subquery returns all potential media id's. Typically, we have a couple of faces and thousands of media files. 
A join is much faster. 

With about 50k images and a face that was present in 2'000 images the query was unusable slow, it took about 60s. 
This is a very important performance fix, as I think many users will run into it. 
Maybe there are other areas where the same improvement is possible, I didn't check.
2022-03-05 17:44:15 +01:00
..
album.go Refactoring of API 2021-11-11 18:57:02 +01:00
faces.go Fix slow query in getting media of a face by using another join 2022-03-05 17:44:15 +01:00
media.go Refactoring of API 2021-11-11 18:57:02 +01:00
mediaGeoJson.go Refactoring of API 2021-11-11 18:57:02 +01:00
notification.go Update gomod to reflect repo transfer 2020-12-17 22:51:43 +01:00
root.go Refactoring of API 2021-11-11 18:57:02 +01:00
scanner.go Refactoring of API 2021-11-11 18:57:02 +01:00
search.go Refactoring of API 2021-11-11 18:57:02 +01:00
share_token.go Refactoring of API 2021-11-11 18:57:02 +01:00
site_info.go Refactoring of API 2021-11-11 18:57:02 +01:00
timeline.go Refactoring of API 2021-11-11 18:57:02 +01:00
user.go Refactoring of API 2021-11-11 18:57:02 +01:00