Performance test files

parent b49444a8
SELECT
aluno_ens_superior.ano_censo,
COUNT(*) AS total
FROM
aluno_ens_superior
WHERE
(reserva_vagas = 1) AND
(bolsa_extensao = 1) AND
(cod_categoria_administrativa IN (1)) AND
(cod_organizacao_academica IN (1, 4, 5))
GROUP BY
aluno_ens_superior.ano_censo
ORDER BY
aluno_ens_superior.ano_censo ASC
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(*) AS total
FROM
aluno_ens_superior
WHERE
(reserva_vagas = 1) AND
(bolsa_extensao = 1) AND
(cod_categoria_administrativa IN (1)) AND
(cod_organizacao_academica IN (1, 4, 5))
GROUP BY
aluno_ens_superior.ano_censo
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(cod_aluno) AS total
FROM
aluno_ens_superior
WHERE
(reserva_vagas = 1) AND
(bolsa_extensao = 1) AND
(cod_categoria_administrativa IN (1)) AND
(cod_organizacao_academica IN (1, 4, 5))
GROUP BY
aluno_ens_superior.ano_censo
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(cod_aluno) AS total
FROM
aluno_ens_superior
WHERE
(reserva_vagas = 1) AND
(bolsa_extensao = 1) AND
(cod_categoria_administrativa IN (1)) AND
(cod_organizacao_academica IN (1, 4, 5))
GROUP BY
aluno_ens_superior.ano_censo
ORDER BY
aluno_ens_superior.ano_censo ASC
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(*) AS total
FROM
aluno_ens_superior
INNER JOIN
ies_ens_superior
ON (aluno_ens_superior.cod_ies = ies_ens_superior.cod_ies)
WHERE
(aluno_ens_superior.cod_aluno_situacao IN (4,5,7)) AND
(aluno_ens_superior.reserva_vagas = 1) AND
(aluno_ens_superior.cod_categoria_administrativa IN (1)) AND
(aluno_ens_superior.cod_organizacao_academica IN (1, 4, 5)) AND
(aluno_ens_superior.ano_censo = ies_ens_superior.ano_censo)
GROUP BY
aluno_ens_superior.ano_censo
ORDER BY
aluno_ens_superior.ano_censo ASC
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(*) AS total
FROM
aluno_ens_superior
INNER JOIN
ies_ens_superior
ON (aluno_ens_superior.cod_ies = ies_ens_superior.cod_ies)
WHERE
(aluno_ens_superior.cod_aluno_situacao IN (4,5,7)) AND
(aluno_ens_superior.reserva_vagas = 1) AND
(aluno_ens_superior.cod_categoria_administrativa IN (1)) AND
(aluno_ens_superior.cod_organizacao_academica IN (1, 4, 5)) AND
(aluno_ens_superior.ano_censo = ies_ens_superior.ano_censo)
GROUP BY
aluno_ens_superior.ano_censo
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(cod_aluno) AS total
FROM
aluno_ens_superior
INNER JOIN
ies_ens_superior
ON (aluno_ens_superior.cod_ies = ies_ens_superior.cod_ies)
WHERE
(aluno_ens_superior.cod_aluno_situacao IN (4,5,7)) AND
(aluno_ens_superior.reserva_vagas = 1) AND
(aluno_ens_superior.cod_categoria_administrativa IN (1)) AND
(aluno_ens_superior.cod_organizacao_academica IN (1, 4, 5)) AND
(aluno_ens_superior.ano_censo = ies_ens_superior.ano_censo)
GROUP BY
aluno_ens_superior.ano_censo
;
SELECT
aluno_ens_superior.ano_censo,
COUNT(cod_aluno) AS total
FROM
aluno_ens_superior
INNER JOIN
ies_ens_superior
ON (aluno_ens_superior.cod_ies = ies_ens_superior.cod_ies)
WHERE
(aluno_ens_superior.cod_aluno_situacao IN (4,5,7)) AND
(aluno_ens_superior.reserva_vagas = 1) AND
(aluno_ens_superior.cod_categoria_administrativa IN (1)) AND
(aluno_ens_superior.cod_organizacao_academica IN (1, 4, 5)) AND
(aluno_ens_superior.ano_censo = ies_ens_superior.ano_censo)
GROUP BY
aluno_ens_superior.ano_censo
ORDER BY
aluno_ens_superior.ano_censo ASC
;
SELECT
ano_censo,
COUNT(*) AS total
FROM
fies
WHERE
(ano_censo > 2011)
GROUP BY
ano_censo
ORDER BY
ano_censo ASC
;
SELECT
ano_censo,
COUNT(*) AS total
FROM
fies
WHERE
(ano_censo > 2011)
GROUP BY
ano_censo
;
SELECT
ano_censo,
COUNT(sigla_uf) AS total
FROM
fies
WHERE
(ano_censo > 2011)
GROUP BY
ano_censo
;
SELECT
ano_censo,
COUNT(sigla_uf) AS total
FROM
fies
WHERE
(ano_censo > 2011)
GROUP BY
ano_censo
ORDER BY
ano_censo ASC;
;
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,993s
user 0m0,004s
sys 0m0,007s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,905s
user 0m0,004s
sys 0m0,008s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,906s
user 0m0,012s
sys 0m0,000s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,964s
user 0m0,004s
sys 0m0,008s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,972s
user 0m0,006s
sys 0m0,006s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,955s
user 0m0,007s
sys 0m0,012s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m2,205s
user 0m0,005s
sys 0m0,006s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,781s
user 0m0,003s
sys 0m0,008s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m1,930s
user 0m0,012s
sys 0m0,000s
+-----------+----------+
| ano_censo | total |
+===========+==========+
| 2012 | 5700370 |
| 2013 | 10779401 |
| 2014 | 16114623 |
| 2015 | 14457435 |
| 2016 | 17050881 |
| 2017 | 13783936 |
+-----------+----------+
6 tuples
real 0m2,097s
user 0m0,003s
sys 0m0,009s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,465s
user 0m0,021s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,406s
user 0m0,005s
sys 0m0,008s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,278s
user 0m0,008s
sys 0m0,006s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,425s
user 0m0,004s
sys 0m0,009s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,440s
user 0m0,013s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,359s
user 0m0,004s
sys 0m0,009s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,392s
user 0m0,001s
sys 0m0,012s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,100s
user 0m0,005s
sys 0m0,008s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,617s
user 0m0,005s
sys 0m0,009s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,350s
user 0m0,006s
sys 0m0,014s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,362s
user 0m0,013s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,217s
user 0m0,010s
sys 0m0,003s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,450s
user 0m0,013s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,425s
user 0m0,021s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,508s
user 0m0,002s
sys 0m0,010s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,400s
user 0m0,005s
sys 0m0,008s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,222s
user 0m0,008s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,278s
user 0m0,004s
sys 0m0,009s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,800s
user 0m0,010s
sys 0m0,010s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m4,483s
user 0m0,009s
sys 0m0,004s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m8,195s
user 0m0,006s
sys 0m0,006s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m8,116s
user 0m0,007s
sys 0m0,006s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m8,013s
user 0m0,009s
sys 0m0,003s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m8,128s
user 0m0,004s
sys 0m0,010s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |
+-----------+-------+
7 tuples
real 0m8,207s
user 0m0,013s
sys 0m0,000s
+-----------+-------+
| ano_censo | total |
+===========+=======+
| 2010 | 723 |
| 2011 | 1080 |
| 2012 | 1508 |
| 2013 | 1783 |
| 2014 | 3150 |
| 2015 | 4157 |
| 2016 | 6412 |