You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
explain format=tree SELECT
files.`repository_id`FROM files
INNER JOIN
commit_files ON
(((files.`repository_id`= commit_files.`repository_id`)
AND (files.`file_path`= commit_files.`file_path`))
AND (files.`blob_hash`= commit_files.`blob_hash`))
AND (files.`tree_hash`= commit_files.`tree_hash`)
INNER JOIN ref_commits ON
(commit_files.`repository_id`= ref_commits.`repository_id`)
AND (commit_files.`commit_hash`= ref_commits.`commit_hash`)
WHERE
files.`file_path`IS NOT NULLAND ref_commits.`ref_name`IS NOT NULLAND ref_commits.`history_index`IS NOT NULLAND ref_commits.`ref_name` REGEXP '^refs/heads/HEAD/'AND ref_commits.`history_index`=0AND (NOT (files.`file_path` REGEXP '^vendor.*'))
AND ((((files.`blob_content` REGEXP '(?i)facebook.*[\'\\"][0-9a-f]{32}[\'\\"]')
OR (files.`blob_content` REGEXP '(?i)twitter.*[\'\\"][0-9a-zA-Z]{35,44}[\'\\"]'))
OR (files.`blob_content` REGEXP '(?i)github.*[\'\\"][0-9a-zA-Z]{35,40}[\'\\"]'))
OR ((files.`blob_content` REGEXP 'AKIA[0-9A-Z]{16}')
OR (files.`blob_content` REGEXP '(?i)reddit.*[\'\\"][0-9a-zA-Z]{14}[\'\\"]')))
OR ((((files.`blob_content` REGEXP '(?i)heroku.*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}')
OR (files.`blob_content` REGEXP '.*-----BEGIN PRIVATE KEY-----.*'))
OR (files.`blob_content` REGEXP '.*-----BEGIN RSA PRIVATE KEY-----.*'))
OR ((files.`blob_content` REGEXP '.*-----BEGIN DSA PRIVATE KEY-----.*')
OR (files.`blob_content` REGEXP '.*-----BEGIN OPENSSH PRIVATE KEY-----.*')));
Having the following query:
The output plan is the following one:
At least,
AND ref_commits.history_index = 0
andAND ref_commits.ref_name REGEXP "^refs/heads/HEAD/"
should be pushed down.The text was updated successfully, but these errors were encountered: