You are viewing a single comment's thread from:

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

in #utopian-io5 years ago

@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

Sort:  

This is great @jrawsthorne!

How long does this example query take to complete after the index?

Fantastic. Thanks for the tip. I will try adding an additional index after the hive update/migration.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 62559.43
ETH 3092.10
USDT 1.00
SBD 3.86