maps icon indicating copy to clipboard operation
maps copied to clipboard

Placing photos on the map takes extremely long

Open JakobMiesner opened this issue 4 years ago • 5 comments

Hello, I ran maps:scan-photos and it located all my 1000 Photos correctly. But even now (48 hours later) I can only see 9 of my images on the map. Is it supposed to be this slow and can I speed it up?

JakobMiesner avatar Jul 23 '21 13:07 JakobMiesner

16 days later and only 101 photos are scanned. I am running Nextcloud 22.0.0 with Maps 0.1.9 on my raspberry 4. The raspberry should be fast enough, my previous setup with the same device and Nextcloud v21 worked fine. Any ideas?

JakobMiesner avatar Aug 08 '21 21:08 JakobMiesner

Same problem. Also, nextcloud reports that cron has failed.

benjaminsabatini avatar Aug 11 '21 12:08 benjaminsabatini

Same here.

ThatCoffeeGuy avatar Aug 23 '21 15:08 ThatCoffeeGuy

Running "php -f cron.php" by hand (nc 21.0.3, maps 0.1.9) took something like 15 minutes but it did only scan something like 10k photos. In fact each time the cron.php script is executed, it scans a few 1k photos more, but since it take a little less than 15mn to do so, I had to change the cron job delay to 15m to prevent from having multiple concurrent executions.

It took a few hours (more or less the nigh) to finally finish the job; the oc_maps_photos table has 151k rows but there are only 54k distinct file_id in there (shared photo directories are scanned for every user).

douardda avatar Sep 01 '21 08:09 douardda

Yes, i agree it dose take a while to place the photos on the map and when clicking on the map tab it take about 15 to 30 seconds to show them. This should be instance and not have to wait once the photos are scared it should do some caching so it dose take forever to populate the photos on the map

AndyXheli avatar Jul 15 '22 19:07 AndyXheli

There are some improvement in #924 which can be tested in v0.2.5. I expect further improvements when the DAV metadata feature gets public.

tacruc avatar Mar 03 '23 23:03 tacruc