From 807fe7547d3a11f9b4543099de199feb6b4577de Mon Sep 17 00:00:00 2001 From: Ihar Hancharenka Date: Mon, 6 Jan 2025 09:37:26 +0300 Subject: [PATCH] m --- .../feature/optimization/presentations.txt | 3 -- .../articles.txt | 5 +++ .../feature/performance/explain/explain.txt | 3 ++ .../{ => performance}/explain/pg-explain.txt | 0 .../hints-directions-query-planner.txt | 0 .../feature/performance/performance.txt | 2 + .../feature/performance/planner/planner.txt | 2 + .../performance/planner/statistics.txt | 38 +++++++++++++++++++ .../feature/performance/presentations.txt | 6 +++ .../tensor-explain.txt | 0 .../{optimization => performance}/tips.txt | 0 db/sql/postgres/performance.txt | 12 ------ pl/java/libfws/spring/boot/docs/books.txt | 2 + .../quality/testing/junit/docs/books.txt | 3 ++ pl/kt/docs/books.txt | 4 +- security/server/keycloak/docs/books.txt | 5 +++ 16 files changed, 68 insertions(+), 17 deletions(-) delete mode 100644 db/sql/postgres/feature/optimization/presentations.txt rename db/sql/postgres/feature/{optimization => performance}/articles.txt (65%) create mode 100644 db/sql/postgres/feature/performance/explain/explain.txt rename db/sql/postgres/feature/{ => performance}/explain/pg-explain.txt (100%) rename db/sql/postgres/feature/{optimization => performance}/hints-directions-query-planner.txt (100%) create mode 100644 db/sql/postgres/feature/performance/performance.txt create mode 100644 db/sql/postgres/feature/performance/planner/planner.txt create mode 100644 db/sql/postgres/feature/performance/planner/statistics.txt create mode 100644 db/sql/postgres/feature/performance/presentations.txt rename db/sql/postgres/feature/{optimization => performance}/tensor-explain.txt (100%) rename db/sql/postgres/feature/{optimization => performance}/tips.txt (100%) delete mode 100644 db/sql/postgres/performance.txt create mode 100644 pl/java/tools/quality/testing/junit/docs/books.txt diff --git a/db/sql/postgres/feature/optimization/presentations.txt b/db/sql/postgres/feature/optimization/presentations.txt deleted file mode 100644 index fdec4d0fb..000000000 --- a/db/sql/postgres/feature/optimization/presentations.txt +++ /dev/null @@ -1,3 +0,0 @@ -2024 -WorkSolutions - Kostenko - Postgres World Optimization Misteries ru 0:00 of 32:50 - https://www.youtube.com/watch?v=MeTDmLyYD9k diff --git a/db/sql/postgres/feature/optimization/articles.txt b/db/sql/postgres/feature/performance/articles.txt similarity index 65% rename from db/sql/postgres/feature/optimization/articles.txt rename to db/sql/postgres/feature/performance/articles.txt index 532001043..911e6b01c 100644 --- a/db/sql/postgres/feature/optimization/articles.txt +++ b/db/sql/postgres/feature/performance/articles.txt @@ -11,3 +11,8 @@ https://habr.com/ru/company/tensor/blog/487380/ https://habr.com/ru/users/kilor/posts/ 2019 https://habr.com/ru/company/tensor/blog/477624/ +https://developer.ibm.com/tutorials/postgresql-experiences-tuning-recomendations-linux-on-ibm-z/ + https://habr.com/ru/company/southbridge/blog/714096/ +2018 +https://www.2ndquadrant.com/en/blog/partitioning-evolution-postgresql-11/ + https://habr.com/ru/company/otus/blog/452280/ diff --git a/db/sql/postgres/feature/performance/explain/explain.txt b/db/sql/postgres/feature/performance/explain/explain.txt new file mode 100644 index 000000000..eac771584 --- /dev/null +++ b/db/sql/postgres/feature/performance/explain/explain.txt @@ -0,0 +1,3 @@ +https://www.postgresql.org/docs/current/sql-explain.html +https://www.postgresql.org/docs/current/using-explain.html + https://www.postgresql.org/docs/current/runtime-config-query.html#RUNTIME-CONFIG-QUERY-CONSTANTS diff --git a/db/sql/postgres/feature/explain/pg-explain.txt b/db/sql/postgres/feature/performance/explain/pg-explain.txt similarity index 100% rename from db/sql/postgres/feature/explain/pg-explain.txt rename to db/sql/postgres/feature/performance/explain/pg-explain.txt diff --git a/db/sql/postgres/feature/optimization/hints-directions-query-planner.txt b/db/sql/postgres/feature/performance/hints-directions-query-planner.txt similarity index 100% rename from db/sql/postgres/feature/optimization/hints-directions-query-planner.txt rename to db/sql/postgres/feature/performance/hints-directions-query-planner.txt diff --git a/db/sql/postgres/feature/performance/performance.txt b/db/sql/postgres/feature/performance/performance.txt new file mode 100644 index 000000000..606e88093 --- /dev/null +++ b/db/sql/postgres/feature/performance/performance.txt @@ -0,0 +1,2 @@ +https://www.postgresql.org/docs/current/performance-tips.html +https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server diff --git a/db/sql/postgres/feature/performance/planner/planner.txt b/db/sql/postgres/feature/performance/planner/planner.txt new file mode 100644 index 000000000..d8af1af57 --- /dev/null +++ b/db/sql/postgres/feature/performance/planner/planner.txt @@ -0,0 +1,2 @@ +https://www.postgresql.org/docs/current/runtime-config-query.html +https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-JOIN-COLLAPSE-LIMIT diff --git a/db/sql/postgres/feature/performance/planner/statistics.txt b/db/sql/postgres/feature/performance/planner/statistics.txt new file mode 100644 index 000000000..c393eef91 --- /dev/null +++ b/db/sql/postgres/feature/performance/planner/statistics.txt @@ -0,0 +1,38 @@ +https://www.postgresql.org/docs/current/planner-stats.html +https://www.postgresql.org/docs/current/multivariate-statistics-examples.html + +CREATE EXTENSION pgstattuple; +SELECT * FROM pgstattuple('table-name') \gx +-[ RECORD 1 ]------+-------- +table_len | 4427680 +tuple_count | 100000 +tuple_len | 3368895 +tuple_percent | 76.61 +dead_tuple_count | 0 +dead_tuple_len | 0 +dead_tuple_percent | 0 +free_space | 16552 +free_percent | 0.37 + +tuple_percent - percent of useful info +free_percent - .. of free (old row versions and free space) +dead_tuple_count - quality of autovacuum + +SELECT relname, n_live_tup, n_dead_tup +FROM pg_stat_user_tables/pg_stat_all_tables; + +SELECT + relname AS "table", + n_live_tup AS live_rows, + n_dead_tup AS dead_rows, + ROUND((n_dead_tup::float8 / NULLIF(n_live_tup + n_dead_tup, 0)) * 100, 2) AS dead_proc +FROM + pg_stat_user_tables +WHERE + n_live_tup + n_dead_tup > 0 +ORDER BY + dead_proc DESC; + +SELECT relname, last_autovacuum, last_autoanalyze +FROM pg_stat_user_tables +WHERE relname=""; diff --git a/db/sql/postgres/feature/performance/presentations.txt b/db/sql/postgres/feature/performance/presentations.txt new file mode 100644 index 000000000..4d8c0d873 --- /dev/null +++ b/db/sql/postgres/feature/performance/presentations.txt @@ -0,0 +1,6 @@ +2024 +JPoint - Zhilin - PG Can Make a Pain 0:00 of 45:49 + https://www.youtube.com/watch?v=pTWfjyeQ5Ks + https://jokerconf.com/talks/0bd645ad3a0f48c292547db572a1c7eb +WorkSolutions - Kostenko - Postgres World Optimization Misteries ru 0:00 of 32:50 + https://www.youtube.com/watch?v=MeTDmLyYD9k diff --git a/db/sql/postgres/feature/optimization/tensor-explain.txt b/db/sql/postgres/feature/performance/tensor-explain.txt similarity index 100% rename from db/sql/postgres/feature/optimization/tensor-explain.txt rename to db/sql/postgres/feature/performance/tensor-explain.txt diff --git a/db/sql/postgres/feature/optimization/tips.txt b/db/sql/postgres/feature/performance/tips.txt similarity index 100% rename from db/sql/postgres/feature/optimization/tips.txt rename to db/sql/postgres/feature/performance/tips.txt diff --git a/db/sql/postgres/performance.txt b/db/sql/postgres/performance.txt deleted file mode 100644 index bcfcad92d..000000000 --- a/db/sql/postgres/performance.txt +++ /dev/null @@ -1,12 +0,0 @@ -https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server - -2024 -JPoint - Zhilin - PG Can Make a Pain 0:00 of 45:49 - https://www.youtube.com/watch?v=pTWfjyeQ5Ks - https://jokerconf.com/talks/0bd645ad3a0f48c292547db572a1c7eb -2019 -https://developer.ibm.com/tutorials/postgresql-experiences-tuning-recomendations-linux-on-ibm-z/ - https://habr.com/ru/company/southbridge/blog/714096/ -2018 -https://www.2ndquadrant.com/en/blog/partitioning-evolution-postgresql-11/ - https://habr.com/ru/company/otus/blog/452280/ diff --git a/pl/java/libfws/spring/boot/docs/books.txt b/pl/java/libfws/spring/boot/docs/books.txt index 40f689f4e..99f178a9b 100644 --- a/pl/java/libfws/spring/boot/docs/books.txt +++ b/pl/java/libfws/spring/boot/docs/books.txt @@ -1,4 +1,6 @@ 2024 +Meric - Mastering Spring Boot 3.0 + 4060519F4DEA92E06D90E3E15D05729F Puig - Spring Boot 3.0 Cookbook ACF6761CEAA97E0460D0F0EA3CC0292A 2023 diff --git a/pl/java/tools/quality/testing/junit/docs/books.txt b/pl/java/tools/quality/testing/junit/docs/books.txt new file mode 100644 index 000000000..052c41288 --- /dev/null +++ b/pl/java/tools/quality/testing/junit/docs/books.txt @@ -0,0 +1,3 @@ +2024 +Langr - Pragmatic Unit Testing In Java With JUnit 3rd ed + 5F9FD301AF41BDA177CA04D9F939D028 diff --git a/pl/kt/docs/books.txt b/pl/kt/docs/books.txt index db421feff..ebc6330fa 100644 --- a/pl/kt/docs/books.txt +++ b/pl/kt/docs/books.txt @@ -1,6 +1,8 @@ http://books.goalkicker.com/KotlinBook/ 2024 +Soshin - Kotlin Design Patterns and Best Practices 3rd ed + 1EFBE911F031A2BC2F83625D13C821DF AignerElizarovIsakovaJemerov - Kotlin in Action 2nd ed 60A4A7FB7DF4D2F6842C6402930C4B63 2023 @@ -17,8 +19,6 @@ Carli - Functional Programming in Kotlin by Tutorials https://github.com/kodecocodes/fpk-materials !!! 567p, classic FP/Haskell approach ! good diagrams incl CT, beauty colors and diagrams -Soshin - Kotlin Design Patterns and Best Practices 2nd ed - magnet:?xt=urn:btih:b2fd201a88b7767616a489a1bd3d480de7977ece 2021 McGregorPryce - Java to Kotlin a Refactoring Guidebook 5EC7B6C8ECF22B8A22CC11B8E19852D0 diff --git a/security/server/keycloak/docs/books.txt b/security/server/keycloak/docs/books.txt index fbe3261a8..76006481f 100644 --- a/security/server/keycloak/docs/books.txt +++ b/security/server/keycloak/docs/books.txt @@ -1,3 +1,8 @@ +2024 +Meric - Mastering Spring Boot 3.0 + 4060519F4DEA92E06D90E3E15D05729F + ! about spring-security integration + ! @WithMockUser 2023 ThorgersenSilva - Keycloak - Identity and Access Management for Modern Applications 2nd ed 2FCEDB79A750149203A1E5CEA5118AA2