Skip to content

Instantly share code, notes, and snippets.

@douglasjarquin
Created July 31, 2013 19:00
Show Gist options
  • Save douglasjarquin/6125040 to your computer and use it in GitHub Desktop.
Save douglasjarquin/6125040 to your computer and use it in GitHub Desktop.
List offending HelpSpot filters
select sFilterName, sFname, sLname, sEmail from HS_Filters inner join HS_Person hsp on hsp.`xPerson` = HS_Filters.`xPerson` where `HS_Filters`.`xFilter` in (select xFilter from HS_Filter_Performance where dTime > 99)
@kryptek
Copy link

kryptek commented Jul 31, 2013

Delete slowest filters

delete from HS_Filters where XFilter in (select xFilter from HS_Filters inner join HS_Person hsp on hsp.xPerson= HS_Filters.xPersonwhereHS_Filters.xFilterin (select xFilter from HS_Filter_Performance where dTime > 99))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment