Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Only first 50 images are displayed #103

Open
Mortein opened this issue Feb 21, 2021 · 8 comments
Open

Only first 50 images are displayed #103

Mortein opened this issue Feb 21, 2021 · 8 comments

Comments

@Mortein
Copy link
Contributor

Mortein commented Feb 21, 2021

Updated the app a while ago and now only the top 50 images load, nothing in the past will load (both thumbnail and the original).

Files uploaded using the app are the only exception, so currently I have thumbnails for 52 files.

I'm using latest build for Android. Have tried clearing both cache and data.

@adambeck7
Copy link

What device are you on and what OS version are you running? What do your logs say? I'm on Android 11 running PhotoPrism 1.0.0 and unable to recreate this error.

@Mortein
Copy link
Contributor Author

Mortein commented Feb 22, 2021

I'm using a OnePlus 6T running Android 10. The version numbers are all 1.0.0 at the moment, but I'm using the latest build (just downloaded it).

I cleared all data (data and cache), uninstalled, and reinstalled, but still only the first 52 images.

Tried viewing my phone's album, and still only the first 52 (albeit the same 52).

PhotoPrism instance is running latest Docker build and updates daily.

@adambeck7
Copy link

can you post your logs from the settings page?

@thielepaul
Copy link
Owner

The problem here is probably that the api for getting the count from the backend is using a different database query than the the api that gets the photo metadata. It should hopefully be fixed once I get time to finish this: #96

@Mortein
Copy link
Contributor Author

Mortein commented Feb 23, 2021

I'll wait for #96 and see if it's still an issue.

@Mortein
Copy link
Contributor Author

Mortein commented Feb 25, 2021

I thought I'd take a look at the log anyway, as I was curious. Debug was enabled.

time="2021-02-25T05:45:49Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [379.158353ms]"
time="2021-02-25T05:45:49Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [390.837226ms]"
time="2021-02-25T05:45:57Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [382.620526ms]"
time="2021-02-25T05:45:57Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [394.085122ms]"
time="2021-02-25T05:45:58Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [379.217577ms]"
time="2021-02-25T05:45:58Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [390.80744ms]"
time="2021-02-25T05:45:59Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [381.756261ms]"
time="2021-02-25T05:45:59Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [394.674186ms]"
time="2021-02-25T05:45:59Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [411.541725ms]"
time="2021-02-25T05:45:59Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [423.554751ms]"
time="2021-02-25T05:46:00Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [383.385019ms]"
time="2021-02-25T05:46:00Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [394.98523ms]"
time="2021-02-25T05:46:00Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [407.64441ms]"
time="2021-02-25T05:46:00Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [419.186477ms]"
time="2021-02-25T05:46:01Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [414.380422ms]"
time="2021-02-25T05:46:01Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [426.631289ms]"
time="2021-02-25T05:46:01Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [411.003505ms]"
time="2021-02-25T05:46:01Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [425.149648ms]"
time="2021-02-25T05:46:02Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [391.944633ms]"
time="2021-02-25T05:46:02Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [403.55576ms]"
...

The first request is a forced pull-down-to-refresh. After scrolling down to the unloaded images, the subsequent requests started. Once they start, they appear to continue forever (or as long as I'm willing to wait).

@darrepac
Copy link

I have the same issue (only the first pictures are loading) on iOS

@ippocratis
Copy link

docker pull thielepaul/photoprism:db-api
Then rebuild with
image: thielepaul/photoprism:db-api
In
docker-compose.yml
Using.the db:api image can let you use the app with the latest backend changes and has not got the loading old images issues the official image has with this app
Also uncomment the watchtower lines to aouto audate the image as when an update is pushed and you are on an older image app cant display anytjing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants