Query caching #15
Labels
No labels
consider soon
documentation
good first issue
hacktoberfest
help wanted
priority: blocker
priority: high
priority: low
priority: medium
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/herald.go#15
Loading…
Reference in a new issue
No description provided.
Delete branch "query-caching"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
related to https://github.com/lbryio/lbry-sdk/issues/3393
N.B. This works against the leveldb-resolve branch in lbry-sdk https://github.com/lbryio/lbry-sdk/tree/leveldb-resolve so deployment needs to wait until those changes are merged.
does this need fixing?
i generally don't like swallowing errors. at the very least you should log it
@ -203,1 +208,4 @@
_ = s.QueryCache.Purge()
s.NumESRefreshes = numRefreshes
}
}
ES data should only change if a new block comes in. Maybe in the future we can use that info to purge the cache so we avoid checking the index every 2 seconds
@ -203,1 +208,4 @@
_ = s.QueryCache.Purge()
s.NumESRefreshes = numRefreshes
}
}
This check shouldn't cost much, it's essentially just pinging the ES server, but we could definitely set the refresh delta higher to like 5 or maybe 10 seconds. @shyba we were talking about this over the weekend, any thoughts?
@ -203,1 +208,4 @@
_ = s.QueryCache.Purge()
s.NumESRefreshes = numRefreshes
}
}
this is fine. we can always bump it up later if its an issue. no need to worry about i tmuch now
No, on seconds though, I don't think so. We accept a single ES index as an argument, and in all our use cases I believe we only ever have to deal with one.
Done.
@ -203,1 +208,4 @@
_ = s.QueryCache.Purge()
s.NumESRefreshes = numRefreshes
}
}
Cool, I parameterized it at least along with the cache ttl.