Daten-Explorer - Stimmenanzahl

Die Tabellen für die Themenabstimmung sind discourse_voting_topic_votes und discourse_voting_votes. Sie können die Anzahl der Stimmen für jedes Thema mit etwas wie diesem einbeziehen: :+1:


SELECT
    t.id AS topic_id,
    t.title AS topic_title,
    dvtv.votes_count,
    t.excerpt,
    t.like_count,
    ('https://our_community.com/t/' || t.slug || '/' || t.id) AS url
FROM
    topics t
JOIN
    discourse_voting_topic_vote_count dvtv ON t.id = dvtv.topic_id
WHERE
    t.category_id = 95
AND
    t.created_at > NOW() - INTERVAL '2 years'
AND deleted_at IS NULL

Es gibt auch ein paar weitere Abfragen, die in der Kategorie Data & reporting nützlich sein könnten - Topics tagged topic-voting