1
Fork 0
photoview/api/graphql
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
..
auth Batch exiftool runs + scanner package restructuring 2021-05-06 22:01:48 +02:00
endpoint Reconnect custom websocket upgrader 2022-02-07 18:15:47 +01:00
models If possible expand root album, write tests 2022-02-07 19:41:44 +01:00
notification clean up api log prints 2021-04-26 10:26:54 +02:00
resolvers Fix slow query in getting media of a face by using another join 2022-03-05 17:44:15 +01:00
directive.go Finish localization 2021-04-11 22:31:42 +02:00
generated.go Better graphql schema documentation 2022-02-05 01:21:00 +01:00
schema.graphql Better graphql schema documentation 2022-02-05 01:21:00 +01:00