STEEMSQL - A public SQL database with all blockchain data – Update 8

SteemSQL is a public MS-SQL database with all the blockchain data in it.

Previous posts:

What’s new?

1. Several tables have been updated to reflect the last changes in the blockchain data structure

Here the changes in details:

Changes in table Account

The field children_rshares2 is no longer used and has been deleted.

Changes in table Comments

The field post_bandwidth is no longer used and has been deleted.
The field blog_category is no longer used and has been deleted.
Two new fields have been added : tags_usage and guest_blog

2. The block's timestamp field has been duplicated in related tables

To retrieve the date and time associated with a transaction, it was necessary to make a join between the tables Tx… and the table Transactions and another join between the table Transactions and the table Blocks.

Despite the fact that best practices in database design advocate not duplicating a data field across different tables, it was clear that this design was a bit cumbersome when writing complex queries.

This is why I decided to duplicate the timestamp field from each block to all tables containing transactions (Tx…). This will make queries easier to write and to understand. It will also speed up a little bit the processing of these queries.

3. Performance improvement

Several indexes have been created to improve overall queries performances.

Support

If you need help, have any comment or request, you can contact me in SteemSQL channel on steemit.chat.

Thanks for reading.


All payouts from this post will be dedicated to keep SteemSQL running.
Thanks for your support.


footer created with steemitboard - click any award to see my board of honor

Support my work as a witness by voting for me here!

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
10 Comments