Progress on HafSQL:
<p dir="auto">I have been developing views for all the operations including the virtual operations. That is done now and the result is 93 views for all the operations. <p dir="auto">I did play with index creation for a while and after some testing on a fully synced haf node, ended up with 36 total indexes (partial indexes). <p dir="auto">It takes around 3.5 hours for indexes to be created on i9-13900 with 12 parallel workers. This test is with ZFS+LZ4 on raid 0 NVMe setup. <p dir="auto">Total storage usage is only by indexes and it is 185GB (non-compressed). 128GB of this space is used by indexes of <code>custom and <code>custom_json operations. This enables retrieving <code>custom_json operations by <code>id and by the username from <code>required_auths or <code>required_posting_auths parameters. I figured this can be a very useful feature for our apps when this gets implemented on the public RPC nodes. <p dir="auto">The rest of the development will probably be making the live sync part of the application to track things like delegations. <p dir="auto">The current code works as it is and is under the tag v0.0.1. Readme should be good enough to set everything up. <p dir="auto">I did try my best to cover all the operations with indexes. Feedback is very welcome. <p dir="auto"><br /> Proposal: <a href="https://peakd.com/hive-139531/@mahdiyari/dhf-proposal-hive-related-development" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">DHF proposal - Hive related development<span>Code: <a href="https://gitlab.com/mahdiyari/hafsql" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://gitlab.com/mahdiyari/hafsql <p dir="auto"><center><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/mahdiyari/23xp6YsMDLqUrrDKCuwHMXiWT8BCbn38G6YfPANYHBPu8mGuwFquQijHAX9XD9cbsHxzZ.jpg" alt="cat-gf897f4638_640.jpg" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/mahdiyari/23xp6YsMDLqUrrDKCuwHMXiWT8BCbn38G6YfPANYHBPu8mGuwFquQijHAX9XD9cbsHxzZ.jpg 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/mahdiyari/23xp6YsMDLqUrrDKCuwHMXiWT8BCbn38G6YfPANYHBPu8mGuwFquQijHAX9XD9cbsHxzZ.jpg 2x" />HAF application development - progress report
2 years ago in HiveDevs by mahdiyari (72)Testing...does it work
$203.22
- Past Payouts $203.22
- - Author $101.67
- - Curators $101.55
659 votes
- smooth: $66.95
- blocktrades: $49.39
- appreciator: $17.01
- usainvote: $10.85
- trafalgar: $10.54
- v4vapid: $7.57
- resonator: $6.90
- stoodkev: $6.44
- jphamer1: $3.61
- brianoflondon: $2.13
- trostparadox: $1.96
- taskmaster4450: $1.49
- fw206: $1.44
- nonameslefttouse: $1.39
- mahdiyari: $1.03
- traf: $0.89
- louis88: $0.64
- dalz: $0.60
- themonetaryfew: $0.58
- quochuy: $0.48
- and 639 more
The HAF documentation says (https://gitlab.syncad.com/hive/haf/-/blob/develop/src/hive_fork_manager/Readme.md#important-notice-about-irreversible-data):
<pre><code>Important notice about irreversible data ⚠ Although reversible and irreversible block tables are directly visible to apps, these tables should not be queried directly. <p dir="auto">As I see in the code all indexes are created on irreversible blocks data tables. Looking at the views they also are created on the irreversible data. Are You sure that new indexes are required additionally to those that are already present in HAF ? Without using views incorporated in the HAF You won't be able to present together irreversible and reversible data (live data). Please let us know if HAF is too slow for Your application, You may add a new issue. Maybe we can incorporate some changes directly inside HAF.Reversible data won't matter in this case. If it was necessary we can add them to the views and it's not a big deal. Indexes are not necessary on the reversible data though as the data is too small to be worth creating an index for it.
The created indexes are necessary for this app but I don't think they are necessary for the haf itself since they won't be necessary outside this use case.
IMHO haf should stay as generalized as possible and don't put the burden of every single app on the HAF node operators unless they choose to run that app.
It's a development related post but you used a picture of cat as thumbnail it's interesting anyway thanks for sharing this technical information great work Sr. Keep developing hive
Cat is the clickbait
It's totally fine Sr.
Be gentle with the kitty
The cat is very cute. I love cats
thanks for sharing
While some of us don't understand anything you pointed out in your post we are genuinely charmed by your cat and good job with your Development thingy😄
I should probably say something about the cat.
Kitty
Keep doing the positive work, by the way the cat is so cute @mahdiyari
The cat looks adorable. There is a lot of magical charm in his two eyes. Thank you for such a beautiful post about cats.❤️❤️
so cute kitty cat❤️😘