From f4a017865cdc63f42b5f1ba8bbb78fe8895b3a92 Mon Sep 17 00:00:00 2001 From: Ihar Hancharenka Date: Sat, 11 Jan 2025 09:48:57 +0300 Subject: [PATCH] m --- db/sql/postgres/docs/courses/pg-pro.txt | 3 ++ .../explain/{ => docs}/articles.txt | 0 .../explain/{ => docs}/presentations.txt | 3 ++ .../explain/{ => docs}/reference.txt | 0 .../transaction/locks/docs/presentations.txt | 43 ++++++++++++++++++- .../feature/transaction/locks/locks.txt | 1 + science/ai/free/deepsek.txt | 6 +++ .../llama/docs/presentations.txt | 2 + 8 files changed, 57 insertions(+), 1 deletion(-) rename db/sql/postgres/feature/performance/explain/{ => docs}/articles.txt (100%) rename db/sql/postgres/feature/performance/explain/{ => docs}/presentations.txt (93%) rename db/sql/postgres/feature/performance/explain/{ => docs}/reference.txt (100%) diff --git a/db/sql/postgres/docs/courses/pg-pro.txt b/db/sql/postgres/docs/courses/pg-pro.txt index 4b6a66605..04129740b 100644 --- a/db/sql/postgres/docs/courses/pg-pro.txt +++ b/db/sql/postgres/docs/courses/pg-pro.txt @@ -1,3 +1,6 @@ +2023 +PostgresProfessional - DBA2 Administration of 18 parts + https://www.youtube.com/playlist?list=PLaFqU3KCWw6L72nIqJ-l-pscc6WxtW4G1 2021 PostgresProfessional - Rogov - DEV2 of 21 videos https://www.youtube.com/playlist?list=PLaFqU3KCWw6K3AyBVcZGdXMtM2xvjHA1N diff --git a/db/sql/postgres/feature/performance/explain/articles.txt b/db/sql/postgres/feature/performance/explain/docs/articles.txt similarity index 100% rename from db/sql/postgres/feature/performance/explain/articles.txt rename to db/sql/postgres/feature/performance/explain/docs/articles.txt diff --git a/db/sql/postgres/feature/performance/explain/presentations.txt b/db/sql/postgres/feature/performance/explain/docs/presentations.txt similarity index 93% rename from db/sql/postgres/feature/performance/explain/presentations.txt rename to db/sql/postgres/feature/performance/explain/docs/presentations.txt index b4aeee4cb..0f2331b92 100644 --- a/db/sql/postgres/feature/performance/explain/presentations.txt +++ b/db/sql/postgres/feature/performance/explain/docs/presentations.txt @@ -28,3 +28,6 @@ Tenzor - Backend School p4 - Query Analysis p1 9:00 of 1:24:11 ! Index Only Scan - smartest ! 1:09:00 - if Heap Fetches quite large, we made worse by this idx, compare to just "Index Scan" ! 1:13:00 - Foreign Scan - for tables on ext servers +2021 +PGConf - Augustine - Deeper understanding of PG execution plan 1:00 of 47:55 + https://www.youtube.com/watch?v=Ls-uE1V31lE diff --git a/db/sql/postgres/feature/performance/explain/reference.txt b/db/sql/postgres/feature/performance/explain/docs/reference.txt similarity index 100% rename from db/sql/postgres/feature/performance/explain/reference.txt rename to db/sql/postgres/feature/performance/explain/docs/reference.txt diff --git a/db/sql/postgres/feature/transaction/locks/docs/presentations.txt b/db/sql/postgres/feature/transaction/locks/docs/presentations.txt index 793d8cb0a..64e87e338 100644 --- a/db/sql/postgres/feature/transaction/locks/docs/presentations.txt +++ b/db/sql/postgres/feature/transaction/locks/docs/presentations.txt @@ -1,7 +1,48 @@ 2023 -Tenzor - Borovikov - Backend School - 7 Locks 3:00 of 1:04:52 +Tenzor - Borovikov - Backend School - 7 Locks of 1:04:52 https://www.youtube.com/watch?v=RjLlixMdnSQ https://www.postgresql.org/docs/current/explicit-locking.html + ! https://www.postgresql.org/docs/current/sql-lock.html + ! 6:00 - https://www.postgresql.org/docs/current/functions-admin.html + ! pg_cancel_backend, pg_terminate_backend + ! 9:00 - pg_advisory_unlock(*) -- outside of tran + ! 10:00 - commit/rollback/rollback to sp, exception in stored proc + ! 11:00 - lock types: + ! table-level, row-level, page-level, advisory, deadlocks + ! 12:00 - table-level locks - https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + ! 13:00 - table-level modes + ! AS - access share - select put this on all tables and all its indices from query, lock ... nowait + ! RS - row share - select ... for ... + ! RE - row exclusive + ! SUE - share update exclusive + ! S - share + ! SRE - share row exclusive + ! E - exclusive + ! AE - access exclusive + ! 20:00 - ... nowait - either now or exception is thrown + ! 22:00 - lock_timeout(integer) - https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-LOCK-TIMEOUT ch19 (server config) + ! 23:00 - alter_in_transaction_session_timeout (for mezkih clients) + ! 25:00 - row-level locks - https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-ROWS + ! 27:00 - row-level modes + ! RS - select ... for key share + ! S - select ... for share + ! SRE - select ... for no key update, update [*] + ! E - select ... for update, delete, update (cols of unique idx) + ! 32:00 - page-level locks - https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-PAGES + ! S - share + ! E - exclusive + ! !!! mostly hw-level (should not see in normal flow) + ! 33:00 - advisory locks https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS + ! blocked resource - arbitrary number (64-bit) + ! PG-only thing - https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-ADVISORY-LOCKS + ! pg_advisory_*(...), tg_try_advisory_(...), pg_advisory_unlock_all(hiliotina) + ! S - share + ! E - exclusive + ! problems - max_locks_per_transaction * max_connections + ! 51:00 - deadlocks - https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-DEADLOCKS + ! 59:00 - pg_stat_activity - https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW + ! wait event types + ! 1:02:00 - pg_locks where not granted 2019 HighLoad - Rogov - PG Locks of 48:42 https://www.youtube.com/watch?v=_R2-IsKfsUU diff --git a/db/sql/postgres/feature/transaction/locks/locks.txt b/db/sql/postgres/feature/transaction/locks/locks.txt index fad095c2f..b68ede315 100644 --- a/db/sql/postgres/feature/transaction/locks/locks.txt +++ b/db/sql/postgres/feature/transaction/locks/locks.txt @@ -13,5 +13,6 @@ where pg_locks transactionid, granted +https://www.postgresql.org/docs/current/functions-admin.html pg_terminate_backend(pid) function diff --git a/science/ai/free/deepsek.txt b/science/ai/free/deepsek.txt index c7bd4e88b..4c213d71f 100644 --- a/science/ai/free/deepsek.txt +++ b/science/ai/free/deepsek.txt @@ -1,7 +1,13 @@ https://www.deepseek.com/ + https://github.com/deepseek-ai +https://github.com/deepseek-ai/DeepSeek-V3 + https://api-docs.deepseek.com/quick_start/pricing +https://deepseekcoder.github.io/ + + 2025 Aiii - DeepSeq v3 + make 0:00 of 23:40 https://www.youtube.com/watch?v=9Xb6KpVl9dQ diff --git a/science/ai/offline-local/llama/docs/presentations.txt b/science/ai/offline-local/llama/docs/presentations.txt index 31b9c8c9b..14db07f04 100644 --- a/science/ai/offline-local/llama/docs/presentations.txt +++ b/science/ai/offline-local/llama/docs/presentations.txt @@ -1,4 +1,6 @@ 2024 +freeCodeCamp - Ollama Course – Build AI Apps Locally 0:00 of 2:57:23 + https://www.youtube.com/watch?v=GWB9ApTPTv4 KskRoyal - How To Run ANY Open Source LLM LOCALLY In Linux 0:00 of 11:11 https://www.youtube.com/watch?v=rriOONGE1Vw 2023