This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Protsent kõikide päringute mahust | |
SELECT substring(query, 1, 50) AS short_query, | |
round(total_time::numeric, 2) AS total_time, | |
calls, round((total_time / calls)::numeric, 2) AS mean, | |
round((100 * total_time / sum(total_time::numeric) | |
OVER ())::numeric, 2) AS percentage_overall | |
FROM pg_stat_statements | |
ORDER BY total_time DESC | |
LIMIT 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
public class KahendpisteMeetod { | |
/** | |
* Sorteerida List kahendpistemeetodil. | |
* @param massiiv sorteeritav list. | |
* @param vasak_piirik Positsioon kust alates sorteerida | |
* @param parem_piirik Positsioon milleni sorteerida, välja arvatud | |
*/ | |
NewerOlder