mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-27 03:24:44 +00:00
add important note
This commit is contained in:
parent
38003b7134
commit
6a8cc5b360
1 changed files with 6 additions and 0 deletions
6
internal/cache/timeline/status.go
vendored
6
internal/cache/timeline/status.go
vendored
|
@ -380,6 +380,12 @@ func (t *StatusTimeline) Load(
|
|||
dir,
|
||||
)
|
||||
|
||||
// TODO: in time, we should think about (dynamically?) preloading
|
||||
// the timelines, and any page requests outside of the cached
|
||||
// range go straight to the database. otherwise there's peculiarities
|
||||
// that may arise due to concurrent new and old range inserts, also
|
||||
// requests for old page ranges are almost always going to be one-off.
|
||||
|
||||
// We now reset the lo,hi values to
|
||||
// represent the lowest and highest
|
||||
// index values of loaded statuses.
|
||||
|
|
Loading…
Reference in a new issue