Skip to content

Selecting cache takes several seconds #685

Description

@urs-beeli

Description

I have imported a GSAK database containing roughly 45'000 caches, among others GC84QFV. Many other caches in the database are near this cache.

When I select a simple traditional cache, the effect is almost instantaneous, it is immediately selected in the grid and the details (including the map) are shown.

However, when I click on GC84QFV, it takes almost 10 seconds until the selection in the grid and the update of the details is done, during that time no interaction with the grid is possible.

Trying to debug this, I have copied this cache into another database with only 20 caches (and all of them much further away from my cache). Clicking on it still takes longer than on the other caches (3 seconds), but it is much faster than in the large database. I have found some other caches in the large database that are non-instantaneous, but those are comparably fast (2-3 seconds) compared to GC84QFV (10 seconds).

I have tried analysing what makes this cache so special, but have been unable to figure it out.

  • the cache has 7 waypoints, other caches in my db have 10+ waypoints are significantly faster
  • the cache in the large db has 339 logs, but other caches in my db have over 900 logs and are shown instantly
  • the cache in the small db only had 46 logs (taking 3 seconds to select), after I re-imported it from a different GSAK database (the one with 339 logs) it now also takes 10+ seconds for the cache to be selected even in the small db. So it seems that the number of logs is a factor, but apparently not the only one

Is there any way I can support the debugging of this issue by providing additional information? Which information might be needed?

Steps to Reproduce

  1. in GSAK: create a new database
  2. add 3-4 random caches to it
  3. add GC84QFV to it
  4. download logs until there are 339 logs in the database
  5. start openSAK
  6. create a new database
  7. import the newly created GSAK database
  8. select one of the 3-4 random caches -> instant selection and update of details
  9. select GC84QFV -> delay of 10+ seconds before the selection is updated in the grid and the details are shown

Expected Behavior

The time to select a cache should be < 1 second and independent of the information contained in the cache

Environment

python --version = 3.14.6
openSAK Version=1.16.1 (English)
os=Windows 11 Pro 25H2 64-bit German

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions