News for hackers. Stuff that matters.
Re:A dataset of every Reddit comment by minimaxir on Saturday July 11, 2015 @02:57PM (#9871095)
As linked below, I've played around a bit with this dataset: https://www.reddit.com/r/dataisbeautiful/comments/3cjyvb/rel...

BigQuery is the best interface for it. Can resolve queries on the entire dataset in less than a few seconds (however, you only get 1TB processing free per month. Since the full dataset is ~285GB, you only get 4 queries per month. Plan ahead on the May 2015 dataset, which is only 8GB.)

I can answer any other questions that people have.

Re:A dataset of every Reddit comment by daave on Saturday July 11, 2015 @04:04PM (#9871346)
> Since the full dataset is ~285GB, you only get 4 queries per month.

That's only true if your 4 queries need to read every single column.

One of the big advantages of BigQuery's column-oriented storage is that you only pay to read the columns that are actually needed to answer your query.

For example, this query to extract the top 10 authors only cost me 19GB to run (and took 7.0s):

  SELECT
    author,
    COUNT(*) AS COUNT
  FROM
    TABLE_QUERY([fh-bigquery:reddit_comments], "table_id CONTAINS '20' AND LENGTH(table_id)<8")
  GROUP EACH BY
    author
  ORDER BY
    COUNT DESC
  LIMIT
    10;

  author,COUNT
  [deleted],228425822
  AutoModerator,3677774
  conspirobot,575576
  ModerationLog,547671
  autowikibot,402076
  PoliticBot,388395
  imgurtranscriber,360248
  dogetipbot,358093
  qkme_transcriber,301968
  TweetPoster,293309
Re:A dataset of every Reddit comment by minimaxir on Saturday July 11, 2015 @04:19PM (#9871409)
Good point.

Although if you're doing analysis on the body column itself, it'll use the majority proportion of the data set, of course.

Re:A dataset of every Reddit comment by rcpt on Saturday July 11, 2015 @08:40PM (#9872113)
I want all the url submissions in a given subreddit, but all I can find in the tables is "link_id". How do I map link_ids to urls?
Re:A dataset of every Reddit comment by minimaxir on Saturday July 11, 2015 @09:02PM (#9872173)
There is no submission data yet.

/u/Stuck_in_the_Matrix commented on another thread that he's working on it.

Re:A dataset of every Reddit comment by ilyaeck on Saturday July 11, 2015 @05:14PM (#9871591)
Is this data in a format that allows to recover threads? I.e., comment X was a response to comment Y ?
Re:A dataset of every Reddit comment by minimaxir on Saturday July 11, 2015 @05:23PM (#9871621)
parent_id is a column, so you could recreate hierarchy by JOINING a table on itself.