create account

RE: Tower: A REST API implementation on the top of Hivemind by wehmoen

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @emrebeyler/re-wehmoen-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190116t135746078z

· @wehmoen · (edited)
 
properties (22)
authorwehmoen
permlinkre-emrebeyler-re-wehmoen-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190116t143502334z
categoryutopian-io
json_metadata{}
created2019-01-16 14:35:03
last_update2020-06-03 06:51:30
depth3
children6
last_payout2019-01-23 14:35:03
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_reputation86,504,380,503,125
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,457,285
net_rshares0
@emrebeyler ·
$0.03
Not with the api, yet :) I will add it if it returns in a feasible time to serve in the api.
👍  ,
properties (23)
authoremrebeyler
permlinkre-wehmoen-re-emrebeyler-re-wehmoen-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190116t143725578z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2019-01-16 14:37:27
last_update2019-01-16 14:37:27
depth4
children5
last_payout2019-01-23 14:37:27
cashout_time1969-12-31 23:59:59
total_payout_value0.022 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation448,535,049,068,622
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,457,366
net_rshares51,000,103,576
author_curate_reward""
vote details (2)
@jrawsthorne ·
$1.35
@emrebeyler I added an index for it (took about 15 minutes) with
```
CREATE INDEX ON hive_posts_cache((json::json->>'app'));
```

and then I could query like this
```
SELECT json::json->>'app' as app, author, permlink, body, created_at from hive_posts_cache where json::json->>'app' like 'busy%' order by post_id desc limit 100
```
![image.png](https://ipfs.busy.org/ipfs/Qmf5SsuCH4UVAC2UKbykp55Jz9svgMAgJPrDuqg5q3LmET)
👍  ,
properties (23)
authorjrawsthorne
permlinkre-emrebeyler-re-wehmoen-re-emrebeyler-re-wehmoen-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190116t205801472z
categoryutopian-io
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["utopian-io"],"users":["emrebeyler"],"links":["/@emrebeyler"],"image":["https://ipfs.busy.org/ipfs/Qmf5SsuCH4UVAC2UKbykp55Jz9svgMAgJPrDuqg5q3LmET"]}
created2019-01-16 20:58:03
last_update2019-01-16 20:58:03
depth5
children3
last_payout2019-01-23 20:58:03
cashout_time1969-12-31 23:59:59
total_payout_value1.092 HBD
curator_payout_value0.261 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length419
author_reputation6,883,202,705,575
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,470,399
net_rshares2,377,834,158,734
author_curate_reward""
vote details (2)
@emrebeyler · (edited)
This is great @jrawsthorne!

How long does this example query  take to complete after the index?
properties (22)
authoremrebeyler
permlinkre-jrawsthorne-re-emrebeyler-re-wehmoen-re-emrebeyler-re-wehmoen-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190116t205937442z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["jrawsthorne"],"app":"steemit/0.1"}
created2019-01-16 20:59:39
last_update2019-01-16 21:00:00
depth6
children2
last_payout2019-01-23 20:59: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_length96
author_reputation448,535,049,068,622
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,470,443
net_rshares0
@wehmoen · (edited)
 
properties (22)
authorwehmoen
permlinkre-emrebeyler-re-wehmoen-re-emrebeyler-re-wehmoen-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190116t182635545z
categoryutopian-io
json_metadata{}
created2019-01-16 18:26:36
last_update2020-06-03 06:38:36
depth5
children0
last_payout2019-01-23 18:26:36
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_reputation86,504,380,503,125
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,465,701
net_rshares0