Making Postgres Bloom
pipelinedb.com
Making Postgres Bloom
1–10 of 25 posts
Re: Making Postgres Bloom
#2Re: Making Postgres Bloom
#3Re: Making Postgres Bloom
#4When you say adding more online algorithms, is that mostly going to be limited to adding more probabilistic data structures?
Re: Making Postgres Bloom
#5Redis comes with both bitfields (see http://redis.io/commands/bitcount) and hyperloglog counters (see http://redis.io/commands/pfcount), requires almost no setup and has very minimal overhead.
Re: Making Postgres Bloom
#6Don't get me wrong, I love Postgres and use it in pretty much all of my projects... but for this kind of application it's not very well suited. Leave your relational data for the database and use something more efficient! Redis comes with both bitfields (see http://redis.io/commands/bitcount ) and hyperloglog counters (see http://redis.io/commands/pfcount ), requires almost no setup and has very minimal overhead.
Re: Making Postgres Bloom
#7Re: Making Postgres Bloom
#8 SELECT user_id IN (SELECT DISTINCT user_id FROM user_actions);
is not valid SQL. You may mean something like: SELECT 123 IN (SELECT DISTINCT user_id FROM user_actions);
which is a strange query, as it's equivalent to: SELECT 123 IN (SELECT user_id FROM user_actions);Re: Making Postgres Bloom
#9usman-m, the approach of PipelineDB seems really interesting. However, I'd like to understand how in your opinion it compares with processing the stream of data changes accessed over PostgreSQL's logical decoding ( http://www.postgresql.org/docs/9.4/static/logicaldecoding.ht... ) interface. Thank you
Continuous views are consumers for streams. You can think of them as high throughput real-time materialized views. The source of data for the stream can be practically anything. Logical decoding on the other hand is a producer of streaming data--it's basically a human readable replication log. So you could potentially stream the logically decoded log into PipelineDB and build some continuous views in front of it.
Re: Making Postgres Bloom
#10The example doesn't quite make sense: SELECT user_id IN (SELECT DISTINCT user_id FROM user_actions); is not valid SQL. You may mean something like: SELECT 123 IN (SELECT DISTINCT user_id FROM user_actions); which is a strange query, as it's equivalent to: SELECT 123 IN (SELECT user_id FROM user_actions);
SELECT FROM (SELECT DISTINCT user_id FROM user_actions);
You're absolutely right that both those queries will give the same result. I guess I was trying to motivate the basic problem of finding whether some user exists in a set of users, and `SELECT DISTINCT` is the SQL way of representing a set.Fixed the post, thanks!