Evan Zhou

Results 85 comments of Evan Zhou
trafficstars

We already use BR for clustered index, there seems no incompatibility.

If we use multiple instances, the largest level only contains tens of files.

Maybe singlefight https://pkg.go.dev/golang.org/x/sync/singleflight can solve your problem.

That's a issue with consistent hash algorithm, freecache doesn't use consistent hash.

If you are on 64bit OS, `int` is 64bit, you are able to allocate caches larger than 4GB.

@toontong SetGCPercent lower can reduce the process memory usage. Say the most of the memory is consumed by the cache. If you do not set it lower, the process may...

`min(100, 100 * (total_memory_size - cache_memory_size) / (cache_memory_size))` may be a good number to use.

> > `max(100, 100 * (total_memory_size - cache_memory_size) / (cache_memory_size))` may be a good number to use. > > you meant to min? Yes, fixed.

I will take a look at it this weekend, thank you for your feedback.

I don't know this feature, and I don't know postgres well, If you can implement it and make a pull request, I will merge it.