Mindblown: a blog about philosophy.

  • 2025/07/06 [Learn Postgres]

    I completed the chapter about logging and auditing. Main takeaways are: – Postgres logs information about it’s actions. Quantity, frequency, destinaiton and content of these logs is highly configurable. – There are two types of logging: syslog for logging to third party systems. This method can drop logs under heavy traffic. logging collector it’s the…

  • 2025/07/05 [GADM-api]

    I separated concept of database connector from endpoint handler. I hope this will improve structure and readability. As a bonus I fixed broken next-url that wasn’t taking into account filter parameters.

  • 2025/07/05 [Learn Postgres]

    I finished the query tuning chapter. Toady I read about query optimization and auto explain . Main takeaways are:– Usually query optimization boils down to leveraging an appropriate index.– Avoid subqueries since they will likely cause redundant looping.– Keep an eye on unused indexes (pg_stat_user_indexes) since they take up space and effort when inserting new…

  • 2025/07/04 [Learn Postgres]

    I completed the section about indexes and started reading about EXPLAIN and ANALYZE statements. Several recent chapter were theory heavy and required a lot of note taking – this slowed down my progress. I will probably skip notes taking in next chapters – Audit Logging and Configuration … or at least restrain notes to crucial…

  • 2025/07/04 [GADM-api]

    I merged the filtering feature and added a mapping between filterable columns and url query parameters. I started thinking about integration tests. They might be quite involved to setup since they will require complex setting up process that includes seeding the data from GADM geopackage database.

  • 2025/07/03 [GADM-api]

    Today, I am celebrating today 30 days for waking up at 6am and working on self developement! I almost finalized the filtering functionality. It required some refactoring to be done. I hope to commit the changes tomorrow. After that I need to prioritize unit or integration tests. Also I want to progress my production environment.…

  • 2025/07/03 [Learn Postgres]

    Toady finished the part about parallel workers. I could not spend the usual amount of time on the book because of the trip to the office. I hope to cover more tomorrow when I will start the section about indexes.

  • 2025/07/02 [Learn Postgres]

    The “query tuning” chapter is great. I already learned a lot about Postgres planner and optimizer, execution stages (parsing, rewriting, optimization and execution), cost-based optimization and sequential nodes – sequential scan, index nodes and nested loops. Tomorrow I will start with parallel nodes!

  • 2025/07/02 [GADM-api]

    I did serious progress on filtering results by parent administrative unit. Squirrel was giving me hard time because of confusion between “?” and “$1” parameters. Fortunately it was solvable by a single line var psql = squirrel.StatementBuilder.PlaceholderFormat(squirrel.Dollar) I think tomorrow I will finish the filtering feature for feature-collection enspoints.

  • 2025/07/01 [Learn Postgres]

    I finished my notes about VACUUM and therefore the “transactions” chapter itself. Also, I browsed over the “extensions” chapter. I was interesting to learn about the pgxn and pgxs tools for extensions management. However the rest of this chapter won’t be very useful to me. But I am happy to move to the next one…

Got any book recommendations?