dainst/idai-field

Cache (image) file index for syncing in desktop client

dersmon opened this issue · 3 comments

Similar to FieldHub we should cache the index of project files in the Field Desktop client:

  • Every time the file index is requested, a cached list is returned or a new one created.
  • Every time an image is deleted or stored, the existing cache is deleted.

This would also make shorter image syncing intervals feasible (down from the currently 5 minutes).

The result map should get cached.

The cache should get cleared every time an image gets stored or deleted.

Hey @dersmon , I'm working on this one too, seems interesting. I also see a lack of documentation following getFileInfos, maybe I'll contribute to that too. :)

Hi @nilanjan2002! Did you already work on this ticket? Otherwise I would re-assign this ticket to a new colleague of mine.