baur | 1 year ago | on: The Great Migration from MongoDB to PostgreSQL
baur's comments
baur | 2 years ago | on: Creating a search engine with PostgreSQL
I think for some use cases it's fine that some inserts are not visible in search results immediately. Also, once could tweak refresh_interval or use explicit refresh for "must be visible" inserts.
baur | 4 years ago | on: Launch HN: Jitsu (YC S20) – Open-Source Segment Alternative
Just wondering, do you have any plans to support CrateDB?
It supports SQL and understands PG protocol - perhaps supporting Postgres kinda already makes it close.
baur | 4 years ago | on: Trie in JavaScript: The data structure behind autocomplete
UPD: Sorry, "up to 15" is a wrong phrasing. I checked once how "prime factorial" fits into primitive, and first 15 primes can fit into long. So it's possible to handle even more symbols if it's smth like "aaaaaaa"64 times because it would be just 2^64
baur | 4 years ago | on: Trie in JavaScript: The data structure behind autocomplete
It's https://en.wikipedia.org/wiki/Hash_array_mapped_trie which used in Scala's immutableMap https://dotty.epfl.ch/api/scala/collection/immutable/HashMap...
baur | 4 years ago | on: Trie in JavaScript: The data structure behind autocomplete
There is an option to get all suffixes without traversing subtree, but it comes with extra O(N) memory where N is combined length of all stored words - depending on case might be acceptable since memory for storing words itself is O(N) anyway. https://stackoverflow.com/a/29966616/2104560 (update 1 and update 3)
Curious how do you use PG for key/value and queue - do you use regular tables or some specific extensions?
I can imagine kv being a table with primary key on “key” and for queue a table with generated timestamp, indexed by this column and peek/add utilising that index.