× Here you can get community support related to ReDJ.

Long Database Query in debug mode

  • bonaventure
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago #2936 by bonaventure
Long Database Query in debug mode was created by bonaventure
I'm getting a very long query from ReDJ when I have debug mode turned on. Is this normal? The redirect seems to work perfectly, but this query seems very long.
SELECT * 
  FROM ( SELECT * 
  FROM prefix_redj_redirects 
  WHERE ( ( ('/horses/29-aa-aa' REGEXP BINARY fromurl)>0 
  AND (case_sensitive<>0) 
  AND (decode_url<>0) 
  AND (request_only<>0) ) OR ( ('/horses/29-aa-aa' REGEXP BINARY fromurl)>0 
  AND (case_sensitive<>0) 
  AND (decode_url=0) 
  AND (request_only<>0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP BINARY fromurl)>0 
  AND (case_sensitive<>0) 
  AND (decode_url<>0) 
  AND (request_only=0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP BINARY fromurl)>0 
  AND (case_sensitive<>0) 
  AND (decode_url=0) 
  AND (request_only=0) ) OR ( ('/horses/29-aa-aa' REGEXP fromurl)>0 
  AND (case_sensitive=0) 
  AND (decode_url<>0) 
  AND (request_only<>0) ) OR ( ('/horses/29-aa-aa' REGEXP fromurl)>0 
  AND (case_sensitive=0) 
  AND (decode_url=0) 
  AND (request_only<>0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP fromurl)>0 
  AND (case_sensitive=0) 
  AND (decode_url<>0) 
  AND (request_only=0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP fromurl)>0 
  AND (case_sensitive=0) 
  AND (decode_url=0) 
  AND (request_only=0) ) ) 
  AND published=1 
  ORDER BY ordering ) AS A 
  WHERE A.skip='' OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP BINARY A.skip)=0 
  AND (case_sensitive<>0) 
  AND (decode_url<>0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP BINARY A.skip)=0 
  AND (case_sensitive<>0) 
  AND (decode_url=0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP A.skip)=0 
  AND (case_sensitive=0) 
  AND (decode_url<>0) ) OR ( ('http://www.mysite.com/horses/29-aa-aa' REGEXP A.skip)=0 
  AND (case_sensitive=0) 
  AND (decode_url=0) )

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #2943 by admin
Replied by admin on topic Long Database Query in debug mode
Yes,
it's ok.

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds