4

How many questions are being asked on Stack Overflow per minute? I looked around and found this 6-year-old link.

Instead of static values for current scenario, I was wondering if a Stack Overflow query can be constructed for knowing the current rate of question generation per minute.

Also, I have recently started following a few tags, including and , and I feel that many more Python questions are posted per minute, as compared to Ruby. Can a tag specific query can be made to see if this is true?

4
  • You already have a query for getting questions that supports filtering by creation time and tag. That should be sufficient for getting the numbers you're after surely?
    – ivarni
    Jul 16, 2016 at 7:06
  • Ohh cool, I didn't know that. It's acceptable surely, but is it possible to make a query at (meta.stackexchange.com/questions/46747/…) that gives answer in one number: rate of questions being asked currenly in tag X. It's just out of curiousity - nothing else though. Jul 16, 2016 at 7:17
  • 3
    I was answering an identical question on MSE till it was deleted in the middle of me posting my answer. Given that the query can be adjusted by selecting the site so it runs against any site I don't see why it would need to be deleted there if it was cast as a questions per day on a site question. It's kind of annoying to work on an answer only to find that you can't submit it. Jul 16, 2016 at 7:19
  • 1
    The thing about a well designed API isn't that it solves every question you could think of but that it gives you the tools to solve every question you can think of. There's no need for the API to return that number because it gives you the tools to find it. Imagine the nightmare of maintaining that codebase if they were to make a new query endpoint every time someone wanted to figure out some metric about the site.
    – ivarni
    Jul 16, 2016 at 7:49

1 Answer 1

4

Here's a SEDE query for it.

select count(*) / 1440.0
from postswithdeleted p
where datepart(year, getdate()) = datepart(year, p.creationdate)
and datepart(dayofyear, getdate()) - 7 = datepart(dayofyear, p.creationdate)
and p.posttypeid = 1 -- questions

It returns the average number of questions asked 7 days ago (because SEDE can be a few days old).

It uses postswithdeleted thanks to gnat so that it gets all questions.

4
  • 1
    10 days a go means that query results will probably miss quite a bunch of questions automatically deleted by 9-days roomba script. If I understand correctly missing data is stored in a dedicated table called PostsWithDeleted
    – gnat
    Jul 17, 2016 at 19:57
  • @gnat I've updated it to be 7 days ago which is a much simpler change. Jul 17, 2016 at 20:29
  • 1
    since your query uses only creationdate and posttypeid there is a chance that simply chnging from to use postswithdeleted instead of posts would work
    – gnat
    Jul 17, 2016 at 20:34
  • 1
    @gnat updated per your advice, it does increase the average a little. Jul 17, 2016 at 20:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .