Li em algum lugar aqui no Discourse, mas agora não consigo encontrar: um post onde alguém escreveu uma métrica ou estatística útil usando uma consulta SQL… Existem algumas que eu gostaria de usar.
Poderia me indicar?
Atenciosamente.
Li em algum lugar aqui no Discourse, mas agora não consigo encontrar: um post onde alguém escreveu uma métrica ou estatística útil usando uma consulta SQL… Existem algumas que eu gostaria de usar.
Poderia me indicar?
Atenciosamente.
It is possible to enter the ruby console and run ActiveRecord queries, if you feel more comfortable doing that.
But IMHO, the best way is to use the Data Explorer plugin.
Some knowledge of the database architecture is still needed, especially for complex queries. But many (IMHO, most) times it is intuitive. eg.
it is clear that the posts table’s posts.topic_id field references the topics table’s topics.id field.