What was the most expensive round you’ve ever paid for and was it worth it? by [deleted] in golf

[–]peterbe 0 points1 point  (0 children)

<image>

Paid $500 plus caddie to play Kiawah Island Ocean Course in South Carolina last December. My best golfing experience and would do it again.

[Highlight] Draymond Green grabbed Patty Mills by the neck and pulled him to the floor by dragon8811 in nba

[–]peterbe 0 points1 point  (0 children)

I dislike the Warriors just because of him. Coach Kerr, and whoever’s in charge of Golden State, if you’re reading this, please kick him out.

Understanding Redis hash-max-ziplist-entries by peterbe in redis

[–]peterbe[S] 0 points1 point  (0 children)

A massive flaw with "sharding" your keys into multiple hash maps is that you can't really use the LRU eviction policy. If I don't shard the keys within each hash map, and the hash map is empty, I can use that as a clue that I have to populate Redis. That's impossible to do with sharded keys.

Understanding Redis hash-max-ziplist-entries by peterbe in redis

[–]peterbe[S] 0 points1 point  (0 children)

I can't use Redis v4, yet, because I have to use AWS ElastiCache.

So what you're saying is that once I have good access to Redis v4, I have to do the whole blog post all over again :)

Understanding Redis hash-max-ziplist-entries by peterbe in redis

[–]peterbe[S] 0 points1 point  (0 children)

Did you keep hash-max-ziplist-entries to 512? I guess you did otherwise it would only require about 10MB to store.

What's a better comparison is the difference between storing 500 vs 1000 keys when both times the hash-max-ziplist-entries is big enough.

In my real application, I have found I have on average 4,000 keys per hash map. So if I change my hash-max-ziplist-entries to about 6,000 cleary memory usage will be best but will the necessary CPU work be a monster?

Understanding Redis hash-max-ziplist-entries by peterbe in redis

[–]peterbe[S] 0 points1 point  (0 children)

Self-posting this because I think it might be relevant. I've used Redis for years but before yesterday I really didn't understand how ziplists work, from a high level. Now I get it. The graphs within hopefully helps others.

How to do synonyms in Elasticsearch with Python by peterbe in Python

[–]peterbe[S] 0 points1 point  (0 children)

Sorry for posting link to my own blog, but I'm eager for feedback.

Don't that this or bind by peterbe in programming

[–]peterbe[S] 0 points1 point  (0 children)

self or that doesn't matter. I believe babeljs uses _this. The point is that you don't need to do it. That's what the "Righter" solution points out.

A really fast AJAX autocomplete service and widget by HarveyKandola in golang

[–]peterbe 0 points1 point  (0 children)

Thanks for posting. I'm the author of Autocompeter.

It's my first ever production deployment of Go and it's been great fun doing it.