scotbot: api update and how the delay was reduced

in #scotbot5 years ago (edited)

Improved API endpoints

The scotbot API endpoints for get_feed, get_discussions_by_created, get_discussions_by_trending and get_discussions_by_hot have been improved and show also posts which are already paid out. The results when viewing a the trending page of a tag is also improved.

You can check how this works here:
https://www.palnet.io/trending/scotbot
https://www.palnet.io/hot/scotbot
https://www.palnet.io/created/scotbot
When you scroll down to the last post, more post will load.

New API Endpoints

Two new api calls were implemented.

Endpoint get_account_votes

This api endpoint can be used to list all votes that a voter has made on a tribe.

GET /get_account_votes

Query Parameters

NameTypeDescriptionRequired
accountstringsaccount nameyes
tokenstringstoken nameyes
limitintlimit results (default 1000)
offsetintskips results (default 0)

Example

Endpoint get_votes

This api endpoint returns the last votes for a specific tribe token.

GET /get_votes

Query Parameters

NameTypeDescriptionRequired
tokenstringstoken nameyes
limitintlimit results (default 1000)
offsetintskips results (default 0)

Example

Speed up scotbot by removing Comment api calls

Comment api calls have been strongly reduced. Before, all comments were parsed from the tags api. This took to long, and the content of a block could not be parsed within 3 seconds. This lead then to an increased delay of scotbot.

As scotbot stores now all votes in the database and the body, title and metadata is also available in the block api call, it was possible to reduce the amount of api calls.

Only when an edited body contains @@, which indicates that the body was edited, a comment api call is needed.

This update is online since a few days now and the delay could be reduced to around 3-9 seconds.

Sort:  

Good work man!

Congratulations @holger80! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You distributed more than 13000 upvotes. Your next target is to reach 14000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

Nice update! At Least transactions can now go swiftly and in time.

Posted using Partiko Android

Thank u so much!!! :)

Good stuff here. Where is the best place to find all of the available api calls?

Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 7.727 which ranks you at #45 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 105 contributions, your post is ranked at #2. Congratulations!

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

Hi, @holger80!

You just got a 4.96% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

A great job and that deserve a cool and cold !BEER

This tool changed a lot at Steem

Again many thanks for your work