There are various front ends and apps for the Hive blockchain that can be used to post contributions. Which one is used most often? How often is something posted with it each month? This question can be answered relatively easily with an SQL statement. All you have to do is execute it in the database using HiveSQL.
SELECT
LEFT(JSON_VALUE(json_metadata, ‘$.app’), CHARINDEX(‘/’, JSON_VALUE(json_metadata, ‘$.app’) + ‘/’) - 1) AS frontend,
COUNT(*) AS post_count
FROM Comments
WHERE depth = 0
AND created >= DATEADD(DAY, -30, GETDATE())
AND ISJSON(json_metadata) = 1
AND JSON_VALUE(json_metadata, ‘$.app’) IS NOT NULL
GROUP BY LEFT(JSON_VALUE(json_metadata, ‘$.app’), CHARINDEX(‘/’, JSON_VALUE(json_metadata, ‘$.app’) + ‘/’) - 1)
ORDER BY post_count DESC
This SQL query searches for the value app in the JSON data in the posts from the last 30 days. This value is used by the front ends to indicate which front end and which version of it was used to send the post.
I'm not interested in the version right now, so I'll leave that out.
There are also bots that specify their own version. Currently, Peakd is just ahead of Ecency, although Ecency is divided into the website and the app. This could now be seen if the version were displayed.
Leothreads (i.e., inleo.io) is only in 5th place after Actifit in terms of posts. So I had expected more there. This only concerns posts, not comments, threads, waves, or whatever else they may be called.
SELECT
JSON_VALUE(json_metadata, ‘$.app’) AS app_with_version,
COUNT(*) AS post_count
FROM Comments
WHERE depth = 0
AND created >= DATEADD(DAY, -30, GETDATE())
AND ISJSON(json_metadata) = 1
AND JSON_VALUE(json_metadata, ‘$.app’) IS NOT NULL
GROUP BY JSON_VALUE(json_metadata, ‘$.app’)
ORDER BY post_count DESC
Since the app value is not verified, someone could also use their own script and store any app. But I see no reason why anyone/a bot would do that. Therefore, it can be assumed that the values are correct.
Für die Hive Blockchain gibt es diverse Frontends und Apps, mit denen man Beiträge posten kann. Welches wird am meisten genutzt? Wie oft wird damit im Monat etwas gepostet? Diese Frage kann man relativ einfach mit einer SQL Anweisung herausfinden. Diese muss man dann nur bei HiveSQL in der Datenbank ausführen.
SELECT
LEFT(JSON_VALUE(json_metadata, '$.app'), CHARINDEX('/', JSON_VALUE(json_metadata, '$.app') + '/') - 1) AS frontend,
COUNT(*) AS post_count
FROM Comments
WHERE depth = 0
AND created >= DATEADD(DAY, -30, GETDATE())
AND ISJSON(json_metadata) = 1
AND JSON_VALUE(json_metadata, '$.app') IS NOT NULL
GROUP BY LEFT(JSON_VALUE(json_metadata, '$.app'), CHARINDEX('/', JSON_VALUE(json_metadata, '$.app') + '/') - 1)
ORDER BY post_count DESC
Mit dieser SQL Abfrage werden in den Posts der letzten 30 Tage in den JSON Daten nach dem Wert app gesucht. Dieser Wert wird von den Frontends genutzt um anzugeben, mit welchem Frontend und welcher Version davon der Post abgeschickt wurde.
Die Version interessiert mich gerade nicht, daher lasse ich diese weg.
Es gibt auch Bots, die eine eigene Version angeben. Aktull ist Peakd knapp vor Ecency, wobei sich Ecency aufteilt in die Webseite und die App. Dies könnte man nun sehen, wenn man die Version mit anzeigen lässt.
Leothreads (also inleo.io) ist bei den Postings nur auf 5. Position nach Actifit. Also da hatte ich mit mehr gerechnet. Es geht hier nur um die Postings, nicht Commentare, Threads, Waves und wie sonst die ggf heißen.
SELECT
JSON_VALUE(json_metadata, '$.app') AS app_with_version,
COUNT(*) AS post_count
FROM Comments
WHERE depth = 0
AND created >= DATEADD(DAY, -30, GETDATE())
AND ISJSON(json_metadata) = 1
AND JSON_VALUE(json_metadata, '$.app') IS NOT NULL
GROUP BY JSON_VALUE(json_metadata, '$.app')
ORDER BY post_count DESC
Da der Wert app nicht verifiziert ist, könnte jemand auch ein eigenes Script nutzen und beliebige App hinterlegen. Aber ich sehe keinen Grund, wieso das jemand/ein bot machen sollte. Daher kann man schon von ausgehen, das die Werte korrekt sind.
Posted Using INLEO
Congratulations @hive-coding! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 2250 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP