Indices lose their speed advantage when using them in OR-situations:
SELECT * FROM a WHERE index1 = 'foo'
UNION
SELECT * FROM a WHERE index2 = 'baar';
is much faster than
SELECT * FROM a WHERE index1 = 'foo' OR index2 = 'bar';
Assinar:
Postar comentários (Atom)
Linux bash file returns unexpected token `$'do\r''
open file in vi edit with vi filename.sh command; type in vi :set ff=unix command; save file with :wq It will save the file with unix...
-
Adicionar ♦ 10 dias a partir de hoje echo date('d/m/Y', strtotime("+10 days")); ♦ 10 dias a partir de uma data echo ...
-
JQuery - JavaScript and HTML at same page :: send.html <script> Dropzone.options.myDropzone= { url: "upload.php", ...
Nenhum comentário:
Postar um comentário