Modify

Opened 2 weeks ago

Last modified 2 weeks ago

#23645 new task

ChangesetCache: Is it useful as it is? Why isn't it always used?

Reported by: GerdP Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: changeset cache Cc:

Description

Just some thoughts...
We have a lot of dialogs which handle changeset data, but only some use the in-memory cache implemented with class ChangesetCache. I wonder if this is intended or not. We also have a lot of different implementations to download changeset data.
We have at least three dialogs:

  • History Browser (HistoryBrowserDialog)
  • Changeset Manager (ChangesetCacheManager)
  • Changesets side pane (ChangesetDialog)

Each seems to implement methods to download changeset data and some seem to use multifetch ignoring the cache while others use the cache but fill it only with singe GET requests.
Quite confusing!
Esp. the Histoy Browser bypasses the cache and possibly downloads huge amounts of data, e.g. when the user browses the history of a complex route relation with many members and many versions.

Besides that we have the reverter plugin which implements its own set of tasks to download history data and I think it also always bypasses the cache.

My conclusion so far: The cache is not very useful as it is, but a better implementation using a disk cache could help to prevent hitting the rate limits.

Attachments (1)

23645.patch (2.2 KB ) - added by GerdP 2 weeks ago.
use/update ChangesetCache when downloading changeset in HistoryBrowser

Download all attachments as: .zip

Change History (5)

comment:1 by stoecker, 2 weeks ago

I'd say. Legacy code ;-)

comment:2 by GerdP, 2 weeks ago

There's also a problem with the id of a changeset. In most places we store it as int, in others we use long, e.g. HistoryOsmPrimitive. Seems useless when class Changeset uses int, right?

comment:3 by gaben, 2 weeks ago

Keywords: changeset cache added

comment:4 by gaben, 2 weeks ago

Marcello noticed this as well sometime ago, see ticket:21570#comment:13.

by GerdP, 2 weeks ago

Attachment: 23645.patch added

use/update ChangesetCache when downloading changeset in HistoryBrowser

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to GerdP.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.