Skip to content

Instantly share code, notes, and snippets.

View Adrinalin4ik's full-sized avatar
🏠
Working from home

Alex Panfilkin Adrinalin4ik

🏠
Working from home
View GitHub Profile
@Adrinalin4ik
Adrinalin4ik / README.md
Created December 28, 2021 15:25 — forked from tmilos/README.md
Modified Preorder Tree Traversal

Modified Preorder Tree Traversal

Hierarchical data metrics that allows fast read operations on tree like structures.

Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.

Sample implementation

@Adrinalin4ik
Adrinalin4ik / psql_useful_stat_queries.sql
Last active June 7, 2021 14:29 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables