here some “strange” sql request of … 13s and 4s with weird WHERE condition:
(activityev0_.ase_type=? and activityev0_.ase_date>=? and (activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and …
select activityev0_.ase_eventid as ase1_33_, activityev0_.ase_requestid as ase2_33_, activityev0_.ase_stream as ase3_33_, activityev0_.ase_date as ase4_33_, activityev0_.ase_priority as ase5_33_, activityev0_.ase_type as ase6_33_, activityev0_.ase_application as ase7_33_, activityev0_.ase_user as ase8_33_, activityev0_.ase_wiki as ase9_33_, activityev0_.ase_space as ase10_33_, activityev0_.ase_page as ase11_33_, activityev0_.ase_hidden as ase12_33_, activityev0_.ase_url as ase13_33_, activityev0_.ase_title as ase14_33_, activityev0_.ase_body as ase15_33_, activityev0_.ase_version as ase16_33_, activityev0_.ase_param1 as ase17_33_, activityev0_.ase_param2 as ase18_33_, activityev0_.ase_param3 as ase19_33_, activityev0_.ase_param4 as ase20_33_, activityev0_.ase_param5 as ase21_33_ from activitystream_events activityev0_ where (activityev0_.ase_type=? and activityev0_.ase_date>=? and (activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activityev0_.ase_page=? or activityev0_.ase_wiki=? and activit ...
or
select activityev0_.ase_eventid as ase1_33_, activityev0_.ase_requestid as ase2_33_, activityev0_.ase_stream as ase3_33_, activityev0_.ase_date as ase4_33_, activityev0_.ase_priority as ase5_33_, activityev0_.ase_type as ase6_33_, activityev0_.ase_application as ase7_33_, activityev0_.ase_user as ase8_33_, activityev0_.ase_wiki as ase9_33_, activityev0_.ase_space as ase10_33_, activityev0_.ase_page as ase11_33_, activityev0_.ase_hidden as ase12_33_, activityev0_.ase_url as ase13_33_, activityev0_.ase_title as ase14_33_, activityev0_.ase_body as ase15_33_, activityev0_.ase_version as ase16_33_, activityev0_.ase_param1 as ase17_33_, activityev0_.ase_param2 as ase18_33_, activityev0_.ase_param3 as ase19_33_, activityev0_.ase_param4 as ase20_33_, activityev0_.ase_param5 as ase21_33_ from activitystream_events activityev0_ where (activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or (activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=? or activityev0_.ase_type=? and activityev0_.ase_date>=?) and (((activityev0_.ase_wiki||?)||activityev0_.ase_page) in (select defaultnot1_.nfp_page_only from notification_filter_prefs defaultnot1_ where defaultnot1_.nfp_owner=? and defaultnot1_.nfp_filter_type=0 and defaultnot1_.nfp_filter_name='scopeNotificationFilter' and (defaultnot1_.nfp_page_only is not null) and defaultnot1_.nfp_page_only<>'' and (defaultnot1_.nfp_event_types='' or defaultnot1_.nfp_event_types is null) and defaultnot1_.nfp_alert=true and defaultnot1_.nfp_enabled=true and defaultnot1_.nfp_date<=activityev0_.ase_date))) and (activityev0_.ase_eventid not in (select activityev2_.ases_eventid from activitystream_events_status activityev2_, activitystream_events activityev3_ where activityev2_.ases_eventid=activityev3_.ase_eventid and activityev2_.ases_eventid=activityev0_.ase_eventid and activityev2_.ases_entityid=? and activityev2_.ases_read=true)) and (activityev0_.ase_eventid not in (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ...