مقاييس وإحصائيات مفيدة

قرأتُ في مكان ما هنا في ديسكورد، لكن لا أستطيع العثور عليه الآن، منشورًا كتب فيه شخص مقياسًا مفيدًا/إحصائية باستخدام استعلام SQL… هناك بضعة منها، أود استخدام أحدها…

هل يمكنك إرشادي…

تحياتي.

There are a couple of topics that relate to this:

  1. Data explorer queries
  1. Badge queries
3 إعجابات

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.

  • it provides information about tables, fields, and field datatypes
  • it does only SELECT queries so it is inherently safer because it can not do anything destructive
  • has built in LIMIT so a poorly crafted query will not bog or crash your site

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.

إعجابَين (2)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.