Open question roomba


Please login or register to vote for this query.

(click on this box to dismiss)

The roomba for these questions runs on Saturdays. Depending on the post score and whether the poster's account has been deleted, these questions could be eligible for the roomba after either 30 or 365 days. See

Ask Ubuntu Meta

Q&A about the site for Ubuntu users and developers

-- Schema documentation:

select top (##TopN:int?300##)
  Posts.Id as [Post Link],
    (case when Users.Id is not null then
      'site://users/' + cast(Users.Id as nvarchar) + '|' else '' end)
      + coalesce(Users.DisplayName, Posts.OwnerDisplayName) as [User Link],
from Posts
left join Users on Users.Id = Posts.OwnerUserId 
where Posts.ClosedDate is null and
  (-- 365-day rule (RemoveAbandondedQuestions)
   ((Posts.Score <= ##MaxPostScore:int?1##
     or (Posts.Score <= ##MaxPostScore##+1 and Posts.OwnerUserId is null)
    -- has view count <= the age of the question in days times 1.5
    and Posts.ViewCount <= datediff(day, Posts.CreationDate, getdate())*1.5
    -- has 1 or 0 comments
    and Posts.CommentCount < 2
   -- 30-day rule (RemoveDeadQuestions)
   or (Posts.Score <= ##MaxPostScore##-1)
  -- has no answers
  and Posts.AnswerCount = 0
  -- post is not locked
  and coalesce((select top 1 PostHistoryTypeId
    from PostHistory
    where PostHistory.PostId = Posts.Id
      and PostHistory.PostHistoryTypeId in (14, 15) -- post locked, unlocked
    order by Id desc), 0) <> 14
  -- post is old
  and datediff(day, cast(##CutoffDate:string?2015-01-01## as datetime),
               Posts.CreationDate) < 0
  and Posts.Tags like '%' + ##Tags:string?%## + '%'
  -- set a min post score to exclude questions that are already eligible for
  -- deletion but hadn't been deleted yet at the time of the data dump
  and Posts.Score >= ##MinPostScore:int?0##
order by case when Users.Id is null then 0 else 1 end,
    Posts.CreationDate asc

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results