create account

Hivemind Queries by inertia

View this thread on: hive.blogpeakd.comecency.com
· @inertia · (edited)
$16.11
Hivemind Queries
<div class="pull-right">

![](https://cdn.steemitimages.com/DQmVrtViVTarPui4ySKgwdVbm7k2wDmhsmGnaT5KH9cfQYr/image.png)

</div>

I installed my own version of [Hivemind](https://github.com/steemit/hivemind) so that I can play around with accessing some of the blockchain using Postgres.  It took a while to sync.  But once it did, *oh nelly!!*

What is Hivemind?  The repo says:

> **Developer-friendly microservice powering social networks on the Steem blockchain.**
> 
> Hive is a "consensus interpretation" layer for the Steem blockchain, maintaining the state of social features such as post feeds, follows, and communities. Written in Python, it synchronizes an SQL database with chain state, providing developers with a more flexible/extensible alternative to the raw steemd API.

This means that you can bypass `steemd` and access data in a more traditional way.  Often, business solutions use SQL for data.  But you can't use SQL on `steemd`.  So Hivemind solves that problem.

Now, in reality, there's another goal to Hivemind, as mentioned in the @steemitblog application team update: [Hivemind/Communities, Sign-Ups, Developer Tools, Condenser, and More!](https://steemit.com/steemit/@steemitblog/applications-team-update-hivemind-communities-sign-ups-developer-tools-condenser-and-more):

> Work on Hivemind 1.0 remains a major focus. Over the past few weeks, we have been heavily testing compatibility between hive and condenser. We have also committed significant resources to documenting the steps required for Hivemind integration, which will help community developers deploy and take full advantage of hive once it is ready.

Hivemind will facilitate community front-ends.  But the 1.0 version doesn't offer much in new features.  It takes some of the load off of `steemd`, which is a *great* feature that I'm very excited about.  But it's hard to convey why this is exciting.  It's just a drop-in replacement for something that already works, right?  Yes, but in doing so, it takes some of the load off of `steemd`.  And that's a very good thing.

At it's core, it does that by making it easier to query the same data.  But in addition to that purpose, if you can run your own Postgres database, you can do some interesting queries.

For example, I want to know what the top 10 apps are, by payout (all time).  Well, the query for that looks like this:

```sql
SELECT   json::json->>'app', Sum(payout)
FROM     hive_posts_cache
GROUP BY json::json->>'app'
LIMIT 10;
```

And that gives us the following results:

| App | Payout in SBD|
|-------|-------|
| steemit/0.1 | 1225887.103 |
| busy/2.5.3 | 93830.625 | 
| dlive/0.1 | 86517.867 |
| busy/2.5.4 | 63678.215 |
| dtube/0.7 | 55127.314 |
| busy/2.5.2 | 42774.839 |
| *unknown* | 38544.404 |
| steemhunt/1.0.0 | 34304.329 |
| esteem/1.6.0 | 31151.406 |
| dsound/0.3 | 17792.419 |

Kinda cool, right?

Or, I can query for specific mentions with certain tags:

```sql
SELECT hive_posts.*
FROM   hive_posts
WHERE  ( hive_posts.id ) IN (
  SELECT hive_posts_cache.post_id
  FROM   hive_posts_cache
  WHERE  ( hive_posts_cache.body LIKE '%@inertia%' )
  AND    ( hive_posts_cache.body LIKE '%@whatsup%' ))
AND ( hive_posts.id ) IN (
  SELECT hive_post_tags.post_id
  FROM   hive_post_tags
  WHERE  ( hive_post_tags.tag ) IN ( 'community', 'shoutout' ));
```

That one's saying that each result must have two mentions and either tag, which gives us the following results:

[@steemexperience/update-on-the-steem-experience](/@steemexperience/update-on-the-steem-experience)
[@wishmaiden/attention-noobs-come-join-the-voice-chat-community-at-steemspeak-com](/@wishmaiden/attention-noobs-come-join-the-voice-chat-community-at-steemspeak-com)
[@arsenal49/400-followers-steemspeak-randowhale](/@arsenal49/400-followers-steemspeak-randowhale)
[@vocalists-trail/thursday-shoutout](/@vocalists-trail/thursday-shoutout)
[@steemexperience/3uaqax-update-on-the-steem-experience](/@steemexperience/3uaqax-update-on-the-steem-experience)
[@steemexperience/45ncqm-update-on-the-steem-experience](/@steemexperience/45ncqm-update-on-the-steem-experience)

Or, lets say we want to query posts that must have all three tags: `kitty` `pet` and `cute`:

```sql
SELECT hive_posts.* 
FROM   hive_posts 
WHERE  ( hive_posts.id ) IN (
  SELECT hive_post_tags.post_id
  FROM   hive_post_tags
  WHERE  hive_post_tags.tag = 'kitty')
AND ( hive_posts.id ) IN (
  SELECT hive_post_tags.post_id
  FROM   hive_post_tags
  WHERE  hive_post_tags.tag = 'pet')
AND ( hive_posts.id ) IN (
  SELECT hive_post_tags.post_id
  FROM   hive_post_tags
  WHERE  hive_post_tags.tag = 'cute');
```

I'm really excited about this kind of query because normally, if we don't use SQL to do this kind of query, we get a huge result.  For example, you might want all posts with `kitty` plus all posts with `pet` plus all posts with `cute` which would give you 23,844 results.  But because I require all three tags in the result, I only get two:

[@seoya/my-lovely-kitty-jelly](/@seoya/my-lovely-kitty-jelly)
[@justwatchout/8nin82lj](/@justwatchout/8nin82lj)

You can also ask for the most upvoted post (at this very moment):

```sql
SELECT hive_posts.*
FROM   hive_posts
INNER JOIN hive_posts_cache ON hive_posts_cache.post_id = hive_posts.id
ORDER  BY hive_posts_cache.rshares DESC
LIMIT  1;
```

... which is this:

[@chbartist/right-before-the-daw](/@chbartist/right-before-the-daw)

... and the most downvoted post:

```sql
SELECT hive_posts.*
FROM   hive_posts
INNER JOIN hive_posts_cache ON hive_posts_cache.post_id = hive_posts.id
ORDER  BY hive_posts_cache.rshares ASC
LIMIT  1;
```

... which is this:

[@joanaltres/re-elfspice-dan-larimer-so-insecure-he-has-to-self-vote-to-put-his-posts-that-already-are-getting-enough-votes-to-the-top-of-trending-20170802t061503811z](/@joanaltres/re-elfspice-dan-larimer-so-insecure-he-has-to-self-vote-to-put-his-posts-that-already-are-getting-enough-votes-to-the-top-of-trending-20170802t061503811z)

Notice that the *highest upvoted* post is distinct from the *highest paid* post.  This is because the market prices are a factor, as well as quadratic rewards, and the fact that this payout pre-dated the voting slider.

```sql
SELECT hive_posts.*
FROM   hive_posts
INNER JOIN hive_posts_cache ON hive_posts_cache.post_id = hive_posts.id
ORDER  BY hive_posts_cache.payout DESC
LIMIT  1;
```

... which is this:

[@xeroc/piston-web-first-open-source-steem-gui---searching-for-alpha-testers](/@xeroc/piston-web-first-open-source-steem-gui---searching-for-alpha-testers)

So yeah, I'm excited about Hivemind.  It's a great way to look at the blockchain from a community perspective.

**Bonus Query:**

Here are my 10 most upvoted (ordered by `rshares`):

[@inertia/deer-on-the-dock](/@inertia/deer-on-the-dock)
[@inertia/primer-primer](/@inertia/primer-primer)
[@inertia/ganymede-a-growing-collection-of-steem-web-tools](/@inertia/ganymede-a-growing-collection-of-steem-web-tools)
[@inertia/creating-demand-for-steem-power-vote-negation](/@inertia/creating-demand-for-steem-power-vote-negation)
[@inertia/prisma-pumpkin-patch](/@inertia/prisma-pumpkin-patch)
[@inertia/dr-otto-vote-bidding-bot](/@inertia/dr-otto-vote-bidding-bot)
[@inertia/radiator-0-3-4](/@inertia/radiator-0-3-4)
[@inertia/before-and-after](/@inertia/before-and-after)
[@inertia/profile](/@inertia/profile)
[@inertia/steemit-the-blockchain](/@inertia/steemit-the-blockchain)

And my 10 most downvoted:

[@inertia/re-dantheman-origin-of-the-right-to-vote-and-how-the-system-denies-this-right-20160813t161354289z](/@inertia/re-dantheman-origin-of-the-right-to-vote-and-how-the-system-denies-this-right-20160813t161354289z)
[@inertia/re-berniesanders-why-did-ned-lie-to-the-steem-community-20170315t004719152z](/@inertia/re-berniesanders-why-did-ned-lie-to-the-steem-community-20170315t004719152z)
[@inertia/re-fyrstikken-to-the-co-owners-of-steem-i-am-being-stalked-and-flagged-by-bernieslanders-nextgencraphole-every-post-i-make-on-steem-20170406t055739063z](/@inertia/re-fyrstikken-to-the-co-owners-of-steem-i-am-being-stalked-and-flagged-by-bernieslanders-nextgencraphole-every-post-i-make-on-steem-20170406t055739063z)
[@inertia/re-ats-david-re-inertia-re-jerrybanfield-i-am-sorry-for-my-last-post-20171010t180440642z](/@inertia/re-ats-david-re-inertia-re-jerrybanfield-i-am-sorry-for-my-last-post-20171010t180440642z)
[@inertia/them-slashdot-trolls](/@inertia/them-slashdot-trolls)
[@inertia/them-java-coders](/@inertia/them-java-coders)
[@inertia/re-berniesanders-re-inertia-re-berniesanders-why-did-ned-lie-to-the-steem-community-20170315t010729361z](/@inertia/re-berniesanders-re-inertia-re-berniesanders-why-did-ned-lie-to-the-steem-community-20170315t010729361z)
[@inertia/re-cryptopian68-re-inertia-re-haejin-v4dxybd8-20180205t042726761z](/@inertia/re-cryptopian68-re-inertia-re-haejin-v4dxybd8-20180205t042726761z)
[@inertia/re-berniesanders-berniesanders-re-inertiare-haejin-v4dxybd8-20180204t235618208z](/@inertia/re-berniesanders-berniesanders-re-inertiare-haejin-v4dxybd8-20180204t235618208z)
[@inertia/re-ats-witness-long-time-user-first-time-witness-20171121t175253701z](/@inertia/re-ats-witness-long-time-user-first-time-witness-20171121t175253701z)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 355 others
👎  
properties (23)
authorinertia
permlinkhivemind-queries
categoryhivemind
json_metadata{"tags":["hivemind","python","communities"],"app":"steemit/0.1","users":["steemitblog"],"image":["https://cdn.steemitimages.com/DQmVrtViVTarPui4ySKgwdVbm7k2wDmhsmGnaT5KH9cfQYr/image.png"],"links":["https://github.com/steemit/hivemind","https://steemit.com/steemit/@steemitblog/applications-team-update-hivemind-communities-sign-ups-developer-tools-condenser-and-more","/@steemexperience/update-on-the-steem-experience","/@wishmaiden/attention-noobs-come-join-the-voice-chat-community-at-steemspeak-com","/@arsenal49/400-followers-steemspeak-randowhale","/@vocalists-trail/thursday-shoutout","/@steemexperience/3uaqax-update-on-the-steem-experience","/@steemexperience/45ncqm-update-on-the-steem-experience","/@seoya/my-lovely-kitty-jelly","/@justwatchout/8nin82lj","/@chbartist/right-before-the-daw","/@joanaltres/re-elfspice-dan-larimer-so-insecure-he-has-to-self-vote-to-put-his-posts-that-already-are-getting-enough-votes-to-the-top-of-trending-20170802t061503811z","/@xeroc/piston-web-first-open-source-steem-gui---searching-for-alpha-testers","/@inertia/deer-on-the-dock","/@inertia/primer-primer","/@inertia/ganymede-a-growing-collection-of-steem-web-tools","/@inertia/creating-demand-for-steem-power-vote-negation","/@inertia/prisma-pumpkin-patch","/@inertia/dr-otto-vote-bidding-bot","/@inertia/radiator-0-3-4","/@inertia/before-and-after","/@inertia/profile","/@inertia/steemit-the-blockchain","/@inertia/re-dantheman-origin-of-the-right-to-vote-and-how-the-system-denies-this-right-20160813t161354289z","/@inertia/re-berniesanders-why-did-ned-lie-to-the-steem-community-20170315t004719152z","/@inertia/re-fyrstikken-to-the-co-owners-of-steem-i-am-being-stalked-and-flagged-by-bernieslanders-nextgencraphole-every-post-i-make-on-steem-20170406t055739063z","/@inertia/re-ats-david-re-inertia-re-jerrybanfield-i-am-sorry-for-my-last-post-20171010t180440642z","/@inertia/them-slashdot-trolls","/@inertia/them-java-coders","/@inertia/re-berniesanders-re-inertia-re-berniesanders-why-did-ned-lie-to-the-steem-community-20170315t010729361z","/@inertia/re-cryptopian68-re-inertia-re-haejin-v4dxybd8-20180205t042726761z","/@inertia/re-berniesanders-berniesanders-re-inertiare-haejin-v4dxybd8-20180204t235618208z","/@inertia/re-ats-witness-long-time-user-first-time-witness-20171121t175253701z"],"format":"markdown"}
created2018-08-11 07:19:15
last_update2018-08-11 16:46:36
depth0
children32
last_payout2018-08-18 07:19:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value16.108 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9,193
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries
0.
accountnull
weight9,500
1.
accountsteemplus-pay
weight500
max_accepted_payout100,000.000 HBD
percent_hbd0
post_id67,830,964
net_rshares52,969,113,362,423
author_curate_reward""
vote details (420)
@anthonyadavisii ·
@inertia, do you have an idea of the specs required for just the postgres instance? My fellow flag enthusiasts are interested in the prospect of housing our own relational database of any sort and are trying to get a grasp on the requirements.

Resteemed and will revisit to vote this quality contribution. (VP too low)
properties (22)
authoranthonyadavisii
permlinkre-inertia-hivemind-queries-20180813t015416318z
categoryhivemind
json_metadata{"tags":["hivemind"],"users":["inertia"],"app":"steemit/0.1"}
created2018-08-13 01:54:18
last_update2018-08-13 01:54:18
depth1
children1
last_payout2018-08-20 01:54:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length319
author_reputation212,565,108,198,998
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id68,007,590
net_rshares0
@inertia · (edited)
I’ve been doing fine on 32GB, 6 cores.  It could probably get by with way less, at the expense of performance, obviously.

I run Postgres on my local dev laptop for testing.  It never gets in the way.
properties (22)
authorinertia
permlinkre-anthonyadavisii-re-inertia-hivemind-queries-20180813t021943455z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-13 02:19:42
last_update2018-12-21 19:56:09
depth2
children0
last_payout2018-08-20 02:19:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length200
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id68,009,135
net_rshares0
@arrowj ·
$2.09
Yes @inertia, but someone might say, “I love the idea, but I also love Ruby.” This looks harder than it might need to be. :)
👍  
properties (23)
authorarrowj
permlinkre-inertia-hivemind-queries-20180811t162331476z
categoryhivemind
json_metadata{"tags":["hivemind"],"users":["inertia"],"app":"steemit/0.1"}
created2018-08-11 16:23:30
last_update2018-08-11 16:23:30
depth1
children1
last_payout2018-08-18 16:23:30
cashout_time1969-12-31 23:59:59
total_payout_value1.995 HBD
curator_payout_value0.090 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length124
author_reputation3,468,352,736,421
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,871,856
net_rshares1,557,405,744,143
author_curate_reward""
vote details (1)
@inertia ·
$0.03
That's an idea.  Like some kind of ORM?
👍  
properties (23)
authorinertia
permlinkre-arrowj-re-inertia-hivemind-queries-20180811t162659502z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 16:27:00
last_update2018-08-11 16:27:00
depth2
children0
last_payout2018-08-18 16:27:00
cashout_time1969-12-31 23:59:59
total_payout_value0.025 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length39
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,872,139
net_rshares19,532,887,145
author_curate_reward""
vote details (1)
@asaha ·
From a community perspective...it's okay 
I'll like to be a part of it...
properties (22)
authorasaha
permlinkre-inertia-hivemind-queries-20180811t122416249z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 12:24:15
last_update2018-08-11 12:24:15
depth1
children0
last_payout2018-08-18 12:24:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation307,268,692,737
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,851,970
net_rshares0
@chekohler ·
$0.02
Being able to pull this data into a sql database will have massive use implications we can run on steemit. We could see better curation programs, ways to enhance our feeds and find relevant content faster. Hivemind looks very cool, gave you a follow @inertia and look forward to learning more about this initiative.  
👍  
properties (23)
authorchekohler
permlinkre-inertia-hivemind-queries-20180811t093703860z
categoryhivemind
json_metadata{"community":"busy","app":"busy/2.5.4","format":"markdown","tags":["hivemind"],"users":["inertia"],"links":["/@inertia"],"image":[]}
created2018-08-11 09:37:06
last_update2018-08-11 09:37:06
depth1
children2
last_payout2018-08-18 09:37:06
cashout_time1969-12-31 23:59:59
total_payout_value0.015 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length317
author_reputation524,332,427,393,665
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,840,050
net_rshares15,255,247,726
author_curate_reward""
vote details (1)
@markkujantunen ·
That's precisely the motivation for building it in the first place.
properties (22)
authormarkkujantunen
permlinkre-chekohler-re-inertia-hivemind-queries-20180811t135205978z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 13:52:06
last_update2018-08-11 13:52:06
depth2
children1
last_payout2018-08-18 13:52:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length67
author_reputation624,829,749,092,114
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,858,516
net_rshares0
@haikubot ·
<em>That's precisely the 
Motivation for building 
It in the first place. 
</em>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<sup>- markkujantunen</sup>

---
<sup><sup><em>I'm a bot. I detect haiku.</em></sup></sup>
properties (22)
authorhaikubot
permlink20180811t135213292z
categoryhivemind
json_metadata{"tags":["test"],"app":"steemjs/examples"}
created2018-08-11 13:52:12
last_update2018-08-11 13:52:12
depth3
children0
last_payout2018-08-18 13:52:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length273
author_reputation1,821,968,927,944
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,858,529
net_rshares0
@chesatochi ·
Can I run Hivermind on an Ubuntu virtual machine?
properties (22)
authorchesatochi
permlinkre-inertia-hivemind-queries-20180811t124727845z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 12:47:30
last_update2018-08-11 12:47:30
depth1
children1
last_payout2018-08-18 12:47:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation235,233,928,560,443
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,853,594
net_rshares0
@inertia ·
Yes.  I’m running it on [Digital Ocean](https://steemit.com/vps/@inertia/virtual-private-server).
properties (22)
authorinertia
permlinkre-chesatochi-re-inertia-hivemind-queries-20180811t154649966z
categoryhivemind
json_metadata{"tags":["hivemind"],"links":["https://steemit.com/vps/@inertia/virtual-private-server"],"app":"steemit/0.1"}
created2018-08-11 15:46:48
last_update2018-08-11 15:46:48
depth2
children0
last_payout2018-08-18 15:46:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length97
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,868,670
net_rshares0
@crokkon · (edited)
.
.
properties (22)
authorcrokkon
permlinkre-inertia-hivemind-queries-20180811t113038276z
categoryhivemind
json_metadata"{"app": ""}"
created2018-08-11 11:30:39
last_update2022-09-18 11:31:15
depth1
children1
last_payout2018-08-18 11:30:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1
author_reputation81,214,366,861,104
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,848,055
net_rshares0
@inertia ·
Correct, running it on my own gives me acccess to more than just the API endpoints.

Right now, it’s taking up about 310 GB disk.
properties (22)
authorinertia
permlinkre-crokkon-re-inertia-hivemind-queries-20180811t155229285z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 15:52:30
last_update2018-08-11 15:52:30
depth2
children0
last_payout2018-08-18 15:52:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length129
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,869,133
net_rshares0
@emrebeyler ·
$2.31
Looking sharp. 

One thing I am skeptical about is syncing. 

It should be rock-solid and catch-up with the chain no matter what the block volume or database size is.

I will certainly play with the project since it's written on my beloved Python.
👍  ,
properties (23)
authoremrebeyler
permlinkre-inertia-hivemind-queries-20180811t081727084z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 08:17:27
last_update2018-08-11 08:17:27
depth1
children7
last_payout2018-08-18 08:17:27
cashout_time1969-12-31 23:59:59
total_payout_value1.736 HBD
curator_payout_value0.576 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length247
author_reputation448,528,959,341,273
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,834,768
net_rshares1,747,815,839,678
author_curate_reward""
vote details (2)
@emrebeyler ·
$0.29
btw,

> It took a while to sync.

How many hours/days?
👍  
properties (23)
authoremrebeyler
permlinkre-emrebeyler-re-inertia-hivemind-queries-20180811t081834444z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 08:18:33
last_update2018-08-11 08:18:33
depth2
children6
last_payout2018-08-18 08:18:33
cashout_time1969-12-31 23:59:59
total_payout_value0.220 HBD
curator_payout_value0.072 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length54
author_reputation448,528,959,341,273
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,834,830
net_rshares222,032,547,192
author_curate_reward""
vote details (1)
@inertia · (edited)
Yup, the sync routine is *rock solid*. @roadscape really nails it.  Initial sync took me about a week.  But that’s because I used api.steemit.com.  I wanted to see what the typical hobbyist might experience trying this out, so I didn’t try anything heroic on the initial sync.

I also didn’t set *any* of the recommended Postgres configurations.  Same reason.  Hobbiests might skip that too.
properties (22)
authorinertia
permlinkre-emrebeyler-re-emrebeyler-re-inertia-hivemind-queries-20180811t153952178z
categoryhivemind
json_metadata{"tags":["hivemind"],"users":["roadscape"],"app":"steemit/0.1"}
created2018-08-11 15:39:51
last_update2018-08-11 21:19:36
depth3
children5
last_payout2018-08-18 15:39:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length391
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,868,067
net_rshares0
@enginewitty ·
Once 'adopted', will it eliminate the use for the (now pay to play) Steem SQL site?
properties (22)
authorenginewitty
permlinkre-inertia-hivemind-queries-20180811t095345168z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 09:53:45
last_update2018-08-11 09:53:45
depth1
children1
last_payout2018-08-18 09:53:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length83
author_reputation693,018,973,943,668
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,841,128
net_rshares0
@inertia ·
$0.07
No.  Hivemind does not capture everything like SteemSQL does.  That’s not the purpose.

I like SteemSQL very much.  I’m glad @arcange doesn’t offer his services for free anymore.  Hopefully it’s sustainable.
👍  ,
properties (23)
authorinertia
permlinkre-enginewitty-re-inertia-hivemind-queries-20180811t154510862z
categoryhivemind
json_metadata{"tags":["hivemind"],"users":["arcange"],"app":"steemit/0.1"}
created2018-08-11 15:45:09
last_update2018-08-11 15:45:09
depth2
children0
last_payout2018-08-18 15:45:09
cashout_time1969-12-31 23:59:59
total_payout_value0.051 HBD
curator_payout_value0.015 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length207
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,868,534
net_rshares50,317,167,341
author_curate_reward""
vote details (2)
@immarojas ·
As interesting as they seem...for the clueless like me, steemd is easy☺
properties (22)
authorimmarojas
permlinkre-inertia-hivemind-queries-20180811t094813959z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 09:48:18
last_update2018-08-11 09:48:18
depth1
children0
last_payout2018-08-18 09:48:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length71
author_reputation71,298,853,656,503
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,840,786
net_rshares0
@intelliguy · (edited)
$0.31
Hivemind is the next big thing. Until we see it more, and use it more, no one gets it... but everytime I hear about the possibilities of what hivemind can bring.. I understand the importance of it.

Thank you very much for sharing your experience with it. It is very helpful and valuable... I hope you write more about hivemind as you do more with it.
👍  ,
properties (23)
authorintelliguy
permlinkre-inertia-hivemind-queries-20180811t073342441z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 07:33:42
last_update2018-08-11 07:34:30
depth1
children0
last_payout2018-08-18 07:33:42
cashout_time1969-12-31 23:59:59
total_payout_value0.250 HBD
curator_payout_value0.058 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length351
author_reputation62,276,657,564,898
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,831,868
net_rshares234,614,763,742
author_curate_reward""
vote details (2)
@kabir88 ·
$0.38
Cool post! Thanks for taking time to share your experiences of the upcoming #hivemind update.

I am not a programmer, but I managed to follow most of what you said it was very informative!

Hopefully by making search queries easier, we can see better interactions with the steem blockchain

Thanks,
@kabir88
👍  , ,
properties (23)
authorkabir88
permlinkre-inertia-hivemind-queries-20180811t210656367z
categoryhivemind
json_metadata{"tags":["hivemind"],"users":["kabir88"],"app":"steemit/0.1"}
created2018-08-11 21:06:57
last_update2018-08-11 21:06:57
depth1
children0
last_payout2018-08-18 21:06:57
cashout_time1969-12-31 23:59:59
total_payout_value0.288 HBD
curator_payout_value0.093 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length307
author_reputation9,762,676,591,926
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,891,928
net_rshares283,475,428,107
author_curate_reward""
vote details (3)
@kanhiyachauhan ·
Interesting facts about the dog...this is my link👇
![DOGGS.jpg](https://cdn.steemitimages.com/DQmS2LXiK42YjwuGpcrzz1dT9zUpGRrHfUYZiZxEWVXt7fR/DOGGS.jpg)
https://steemit.com/introduceyourself/@kanhiyachauhan/information-about-the-dog-and-interesting-facts
properties (22)
authorkanhiyachauhan
permlinkre-inertia-hivemind-queries-20180811t171409224z
categoryhivemind
json_metadata{"tags":["hivemind"],"image":["https://cdn.steemitimages.com/DQmS2LXiK42YjwuGpcrzz1dT9zUpGRrHfUYZiZxEWVXt7fR/DOGGS.jpg"],"links":["https://steemit.com/introduceyourself/@kanhiyachauhan/information-about-the-dog-and-interesting-facts"],"app":"steemit/0.1"}
created2018-08-11 17:14:15
last_update2018-08-11 17:14:15
depth1
children0
last_payout2018-08-18 17:14:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length254
author_reputation47,404,854,955,696
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,875,764
net_rshares0
@obaidb2 ·
$0.29
It is the advanced version of steemd,right
👍  
properties (23)
authorobaidb2
permlinkre-inertia-hivemind-queries-20180811t072119285z
categoryhivemind
json_metadata{"community":"busy","app":"busy/2.5.4","format":"markdown","tags":["hivemind"],"users":[],"links":[],"image":[]}
created2018-08-11 07:21:21
last_update2018-08-11 07:21:21
depth1
children4
last_payout2018-08-18 07:21:21
cashout_time1969-12-31 23:59:59
total_payout_value0.220 HBD
curator_payout_value0.072 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation4,095,618,448,032
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,831,094
net_rshares222,032,547,192
author_curate_reward""
vote details (1)
@inertia ·
$0.29
No, it's taking on some of the role that steemd currently has.  But steemd will always continue to provide a focus on blockchain consensus.
👍  
properties (23)
authorinertia
permlinkre-obaidb2-re-inertia-hivemind-queries-20180811t073335488z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 07:33:36
last_update2018-08-11 07:33:36
depth2
children3
last_payout2018-08-18 07:33:36
cashout_time1969-12-31 23:59:59
total_payout_value0.220 HBD
curator_payout_value0.072 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length139
author_reputation346,568,901,399,561
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,831,865
net_rshares222,032,547,192
author_curate_reward""
vote details (1)
@igster ·
> Being able to pull this data into a sql database will have massive use implications we can run on steemit. We could see better curation programs, ways to enhance our feeds and find relevant content faster. Hivemind looks very cool, gave you a follow @inertia and look forward to learning more about this initiative.

Saw this comment below from @chekohler and I wonder: 

What would it take to be able to make queries like these to hivemind straight from script.js file like we currently get to do with steem.api.getDiscussionsByBlog as an example.
properties (22)
authorigster
permlinkre-inertia-re-obaidb2-re-inertia-hivemind-queries-20180812t082956399z
categoryhivemind
json_metadata{"tags":["hivemind"],"users":["inertia","chekohler"],"app":"steemit/0.1"}
created2018-08-12 08:29:57
last_update2018-08-12 08:29:57
depth3
children0
last_payout2018-08-19 08:29:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length550
author_reputation17,415,198,441,969
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,931,942
net_rshares0
@obaidb2 ·
Guess there would be more development that could join hivemind later on
properties (22)
authorobaidb2
permlinkre-inertia-re-obaidb2-re-inertia-hivemind-queries-20180811t073607282z
categoryhivemind
json_metadata{"community":"busy","app":"busy/2.5.4","format":"markdown","tags":["hivemind"],"users":[],"links":[],"image":[]}
created2018-08-11 07:36:12
last_update2018-08-11 07:36:12
depth3
children1
last_payout2018-08-18 07:36:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length71
author_reputation4,095,618,448,032
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,832,031
net_rshares0
@thompson2 ·
$0.02
Nice one
👍  
properties (23)
authorthompson2
permlinkre-inertia-hivemind-queries-20180811t093144708z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2018-08-11 09:31:54
last_update2018-08-11 09:31:54
depth1
children0
last_payout2018-08-18 09:31:54
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8
author_reputation1,719,016,988,043
root_title"Hivemind Queries"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,839,696
net_rshares17,041,828,527
author_curate_reward""
vote details (1)