create account

[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL by mahdiyari

View this thread on: hive.blogpeakd.comecency.com
· @mahdiyari · (edited)
$33.06
[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL
<center>![hafsql.png](https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/mahdiyari/23uEsNRBN8VFqNkR4aCSQNwDRgLN2G4wfa9XnM9DyWZQwdrNaay2JikkpGnTU2eaS7JzA.png)</center>
I have been providing public access to a HAF + HafSQL database for the past 3 months. Alongside with a backup server to keep the downtimes minimal.

I do provide a few free services including public API nodes which require some beefy machines. I do that because of my witness rewards and it is all voluntary.

This public database is adding up a bit. It also doesn't help that I launched a new public RPC node in USA which is expensive compared to EU. I was considering removing the backup server which will add at least 48 hours of downtime on every upgrade or a possible crash/issue. I'll probably remove the USA RPC node as well as I don't think it is really needed right now considering the number of public nodes we have. But I thought it is worth giving DHF a shot as the provided service is beneficial to the apps and developers.

### Funding
- Server cost - 1 main server - 1 backup server
- Partial development/maintenance cost

This is not only for the server cost and includes development as well.

HafSQL was originally paid by DHF but I have been working on it since then. I added some new features and updated the code to work with the newer versions of the HAF (since the original code was for v1.27.4.0). Currently I know Inleo team is using their own local HafSQL for some part of their website and I know peakd is developing their polling system with HafSQL.

### What I promise
- To keep the public database running (`hafsql.mahdiyari.info`) + backup server[s]
- Keep HafSQL working with newer versions of HAF
- Add new/requested features by the apps or developers
- If the project is ended by any event such as lack of work, I will return the unused funds minus the server costs for the year to the DHF treasury.

I'll do my best to keep the database open to the public as I have been doing for a while even if there was no funding.
***
### Development
I did develop an experimental version of reputations and due to lack of feedback is still considered under development. The other features I'm interested in are the data included in Hivemind as I have been asked by other devs. I was thinking about implementing features present in Hivemind in a modular way. Reputations was the first but since there were talks about removing the reputations entirely, I did implement a modified version as an alternative for testing which is way faster to sync. The added features will be optional just like the already present features. You can choose what you want in your database when running the HafSQL app.
Currently syncing HafSQL takes less than 24 hours. And syncing hivemind takes at least a week. For a full node you need hivemind as all social side is handled by hivemind.

My goal would be to remove Hivemind and have a modular HafSQL which can replace Hivemind seamlessly. Which would include development of the APIs supported by hivemind. Also I don't intend to drag the development an entire year and will try to wrap it up faster if possible. And of course this goal can change depending on the request of the apps and developers.
***
The details for the public database are in this post: [Public HafSQL database on HAF](/hive-139531/@mahdiyari/public-hafsql-database-on-haf)

GitLab links: 
https://gitlab.com/mahdiyari/hafsql
https://gitlab.com/mahdiyari/hafsql-api

I appreciate your support. Feedback is most welcome. Feel free to comment your questions or concerns about the proposal or the project.

Proposal links:
Proposal number 301
[Peakd](https://peakd.com/me/proposals/301)
[Ecency](https://ecency.com/proposals/301)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 378 others
properties (23)
authormahdiyari
permlinkproposal-public-haf-hafsql-database-maintenance-and-development-of-hafsql
categoryhive-139531
json_metadata{"tags":["hive","dev","hivedev","haf","hafsql","dhf","proposal"],"image":["https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/mahdiyari/23uEsNRBN8VFqNkR4aCSQNwDRgLN2G4wfa9XnM9DyWZQwdrNaay2JikkpGnTU2eaS7JzA.png"],"links":["/hive-139531/@mahdiyari/public-hafsql-database-on-haf"],"app":"hiveblog/0.1","format":"markdown","users":["mahdiyari"]}
created2024-03-26 21:33:54
last_update2024-03-26 21:54:45
depth0
children5
last_payout2024-04-02 21:33:54
cashout_time1969-12-31 23:59:59
total_payout_value16.574 HBD
curator_payout_value16.482 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,740
author_reputation168,453,265,420,231
root_title"[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,360,099
net_rshares61,100,058,042,230
author_curate_reward""
vote details (442)
@chefbgob ·
Was scared about the notice, but seems cool. Thank you
properties (22)
authorchefbgob
permlinkre-mahdiyari-sbhsvt
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2024.4.1"}
created2024-04-05 23:21:30
last_update2024-04-05 23:21:30
depth1
children0
last_payout2024-04-12 23:21: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_length54
author_reputation3,923,391,816,294
root_title"[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,632,529
net_rshares0
@ctrpch ·
$1.20
I support this proposal, you are not asking for much compared to the value that you are giving. 

Keep up the good work mate.
👍  , , , ,
properties (23)
authorctrpch
permlinkre-mahdiyari-saztw3
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2024.3.6"}
created2024-03-27 06:26:30
last_update2024-03-27 06:26:30
depth1
children0
last_payout2024-04-03 06:26:30
cashout_time1969-12-31 23:59:59
total_payout_value0.600 HBD
curator_payout_value0.599 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length125
author_reputation73,572,628,953,397
root_title"[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,368,402
net_rshares2,343,279,379,648
author_curate_reward""
vote details (5)
@nonameslefttouse ·
$0.30
Peakd just sent me a pop up alerting me of this proposal.  *So smart.*
👍  
properties (23)
authornonameslefttouse
permlinkre-mahdiyari-sazes9
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2024.3.6"}
created2024-03-27 01:00:09
last_update2024-03-27 01:00:09
depth1
children0
last_payout2024-04-03 01:00:09
cashout_time1969-12-31 23:59:59
total_payout_value0.148 HBD
curator_payout_value0.148 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length70
author_reputation568,069,181,966,903
root_title"[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,363,904
net_rshares554,833,985,045
author_curate_reward""
vote details (1)
@tranquil3 ·
$0.24
Your transparency is commendable and I think keeping the database open to the public would be a nice one. 
👍  
properties (23)
authortranquil3
permlinkre-mahdiyari-2024327t35425221z
categoryhive-139531
json_metadata{"type":"comment","tags":["hive-139531","hive","dev","hivedev","haf","hafsql","dhf","proposal"],"app":"ecency/3.0.46-mobile","format":"markdown+html"}
created2024-03-27 02:54:30
last_update2024-03-27 02:54:30
depth1
children0
last_payout2024-04-03 02:54:30
cashout_time1969-12-31 23:59:59
total_payout_value0.122 HBD
curator_payout_value0.122 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length106
author_reputation5,607,714,871,700
root_title"[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,365,533
net_rshares460,140,957,313
author_curate_reward""
vote details (1)
@wrestlingdesires ·
I supported it :) Thanks so much for your work 🙌


This post has been manually curated by the VYB curation project
properties (22)
authorwrestlingdesires
permlinkre-mahdiyari-sbbn3c
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2024.4.1"}
created2024-04-02 15:30:51
last_update2024-04-02 15:30:51
depth1
children0
last_payout2024-04-09 15:30: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_length114
author_reputation186,974,641,482,707
root_title"[Proposal] Public HAF/HafSQL database maintenance & development of HafSQL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,542,377
net_rshares0