You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing Cronos functionalities, we think the changes in tendermint/tm-db#218 made the DB consume too much RAM. Instead of hardcoding the max open file number, we prefer it to be adjustable based on the instance's resources.
Therefore,
We may introduce DBOptions into dbCreator, i.e.
type (
dbCreator func(name string, dir string, opts DBOptions) (DB, error)
DBOptions interface {
Get(string) interface{}
}
)
and introduce a new method and then update the original NewDB implementation
When testing Cronos functionalities, we think the changes in tendermint/tm-db#218 made the DB consume too much RAM. Instead of hardcoding the max open file number, we prefer it to be adjustable based on the instance's resources.
Therefore,
We may introduce
DBOptions
intodbCreator
, i.e.and introduce a new method and then update the original
NewDB
implementationTherefore, it will be easier to make DB adjustments to the Cosmos SDK when the DB supports certain options.
The text was updated successfully, but these errors were encountered: