43

I recently attended a conference where the speaker referenced the Stack Overflow database and actually did queries against it.

Some of the queries that he has provided to us also use the Stack Overflow database. I have looked in this forum and in the DBA forum to find it, to download it, so that I (and the others at the seminar) can actually use the queries, but I can't find it anywhere.

6
  • 2
    I think this is what you're looking for? data.stackexchange.com/stackoverflow/query/new
    – AaronLS
    Commented May 28, 2015 at 22:35
  • @AaronLS - This may actually be where I need to be, but I understood that we could download the db to actually put stressors on our servers for testing. I will try using this, thanks! -- No, didn't work - I am not permitted to CRATE PROCEDURE (probably a good thing!)
    – Deb
    Commented May 28, 2015 at 22:38
  • @Deb You can create queries on the currently actual data as mentioned, why you wan't to download a copy of SO's database? Commented May 28, 2015 at 23:00
  • 7
    @Deb See this on Meta Stack Exchange
    – Taryn Mod
    Commented May 28, 2015 at 23:06
  • 4
    "I am not permitted to CRATE PROCEDURE (probably a good thing!)" -- Truer words have never been spoken. (*CREATE PROCEDURE)
    – GEOCHET
    Commented May 29, 2015 at 1:05
  • @GEOCHET - LOL - you are sooo right!
    – Deb
    Commented May 29, 2015 at 18:36

3 Answers 3

28

There is no need to download the database.

Just use the online tools: https://data.stackexchange.com/

If you really have your heart set on downloading actual data, you can get data dumps here: https://archive.org/details/stackexchange

3
  • 3
    It's actually surprisingly small, at just 7gb for Stack Overflow (compressed). Commented May 29, 2015 at 7:09
  • 2
    why there are differences between these 2? In data.stackexchange.com/stackoverflow/query/new database has 27 tables, while in archive.org/details/stackexchange, databse has 8 tabes?
    – IgorAlves
    Commented Mar 23, 2016 at 19:59
  • 3
    Why not ask that as a question, instead of leaving it as a comment?
    – GEOCHET
    Commented Mar 28, 2016 at 13:11
26

Brent Ozar here - I might have been the speaker because I do a lot of demos with the Stack Overflow databases running on Microsoft SQL Server.

If you want to follow along with the demos in SQL Server, I keep a torrent of the SQL Server version of the data dump here.

3
  • Real nice! :) I'm sure going to use this in my master's degree dissertation. Brent, do you know any area\topics that I could explore during my research? I mean, a topic related to information search and retrieval or something like that I could use the database to play with... Commented May 18, 2016 at 22:14
  • 1
    Leniel - no, but you could start with data.stackexchange.com, which is a repository of queries people have run against the database.
    – Brent Ozar
    Commented May 18, 2016 at 22:17
  • 1
    Yes, you were the speaker :) Thanks!
    – flyby
    Commented Nov 20, 2017 at 16:12
2

Note that you can use Google BigQuery to query the quarterly dumps too.

Announcement:

For example, here I share how to calculate the average response time for any query:

Or the number of pageviews per quarter per tag (not an easy task anywhere else):

You must log in to answer this question.

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