dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Page not responsive

Open Coysh opened this issue 1 year ago • 1 comments

Describe the bug I have lots of points.. Probably over 100,000 going back 10 years. Would love to be able to render these points on a map, either as a heatmap or points - but anything more than a few years renders the maps page unresponsive.

Version 0.0.0

To Reproduce Steps to reproduce the behavior:

  1. Go to Map
  2. Click on Start date
    1. Set to more than a few years

Expected behavior Show all points on map

Screenshots If applicable, add screenshots to help explain your problem.

Logs If applicable, add logs from containers dawarich_app and dawarich_sidekiq to help explain your problem.

Additional context Add any other context about the problem here.

Coysh avatar Oct 07 '24 18:10 Coysh

Just wanted to add that I have 189k points (98k geocoded) over the last 5 years, and while Ruby does take a whole gb of memory on the host server, and Firefox momentarily says that the page is unresponsive, the page loads after 30ish seconds with all data shown.

You may need to add more info in order to have your bug recreated? E.g. what browser, the DaWarIch logs, your server specs, etc

Svagtlys avatar Oct 11 '24 02:10 Svagtlys

This is a known issue, browsers are having problems rendering huge amounts of points. I hope to improve it in the future.

Freika avatar Oct 19 '24 21:10 Freika

Just wanted to add that I have 189k points (98k geocoded) over the last 5 years, and while Ruby does take a whole gb of memory on the host server, and Firefox momentarily says that the page is unresponsive, the page loads after 30ish seconds with all data shown.

You may need to add more info in order to have your bug recreated? E.g. what browser, the DaWarIch logs, your server specs, etc

In answer to the specs. I'm on a Macbook Pro M1 - using Chrome, but also experienced the issue in Firefox and Safari.

Coysh avatar Oct 22 '24 06:10 Coysh

Release 0.15.8 introduces "Simplified" mode of points rendering. When enabled, points that are closer to each other than 50 meters or 20 seconds, will not be rendered, improving the map performance. Let me know if you'll encounter any issues with that or if it works good for you

Freika avatar Oct 22 '24 10:10 Freika

@Coysh I'm closing this, let me know if you're still experiencing the issue and we'll reopen it.

Freika avatar Oct 29 '24 10:10 Freika

This is still happening to me, except it occurs with a date range of only a few weeks. I can't even dream of viewing an entire year (or months).

I have it on simplified mode already.

alternativesurfer avatar Jan 15 '25 19:01 alternativesurfer

@alternativesurfer what version you're on? In 0.22.3 I introduced major performance improvements to the map

Freika avatar Jan 15 '25 20:01 Freika