Best of Database โ€” January 2024

  1. 1
    Article
    Avatar of lnLaravel Newsยท2y

    Access your database right inside VS Code!

    DevDb is a lightweight VS Code extension that provides a database GUI client and displays the data and schema details directly in the editor. It supports SQLite, MySQL, and PostgreSQL, including a zero-config option for easy setup.

  2. 2
    Article
    Avatar of motherduckMotherDuckยท2y

    Why you should learn SQL in 2024

    SQL is a valuable and marketable skill that every organization needs. It is essential for manipulating and analyzing data stored in databases. SQL is a portable skill that can be used across different databases and data tools. Learning SQL is made easier with DuckDB and MotherDuck.

  3. 3
    Article
    Avatar of hnasrHussein Nasserยท2y

    Your SQL is Slow

    Understanding SQL query performance and the importance of execution plans.

  4. 4
    Article
    Avatar of medium_jsMediumยท2y

    Why UUID7 is better than UUID4 as clustered index

    This post discusses the differences between UUID version 4 and UUID version 7 as clustered indexes in a database. It explores the pros and cons of using UUIDs instead of sequential IDs and explains why UUID version 7 was faster than UUID version 4. The experiments and results are presented, along with an explanation of index locality and buffer pool in relation to the performance differences.

  5. 5
    Article
    Avatar of hnHacker Newsยท2y

    vanna-ai/vanna: ๐Ÿค– Chat with your SQL database ๐Ÿ“Š. Accurate Text-to-SQL Generation via LLMs using RAG ๐Ÿ”„.

    Vanna is an open-source Python framework for SQL generation using RAG. It allows users to train a model and ask questions to generate SQL queries for their database. The framework provides high accuracy, security, self-learning capabilities, and supports any SQL database. Users can also extend Vanna to use their own LLM or vector database.

  6. 6
    Article
    Avatar of communityCommunity Picksยท2y

    1 billion rows challenge in PostgreSQL and ClickHouse

    This post discusses the process of ordering 1 billion rows in Java using PostgreSQL and ClickHouse. It covers generating the data, setting up local databases, loading the data, running queries, and comparing the results. The post highlights the faster performance of ClickHouse compared to PostgreSQL for querying directly from a CSV file.

  7. 7
    Article
    Avatar of sqlshackSQL Shackยท2y

    Difference between SQL SELECT UNIQUE and SELECT DISTINCT

    Learn about the difference between SQL SELECT UNIQUE and SELECT DISTINCT, the use of UNIQUE constraint, and the syntax for executing these statements in Oracle. Both statements are used to fetch unique values from a column that may have duplicate values.

  8. 8
    Article
    Avatar of supabaseSupabaseยท2y

    Getting started with Laravel and Postgres

    Learn how to get started with Laravel and Postgres using Supabase as an alternative to Heroku. Set up a new Laravel application, install the authentication template, configure the Postgres connection details, run database migrations, and start the app.

  9. 9
    Article
    Avatar of communityCommunity Picksยท2y

    Refactoring a monolith into microservices

    This post is part of a series on designing, building, and deploying microservices. It focuses on the process of refactoring a monolithic application into microservices using domain-driven design and various decoupling strategies. It also discusses the challenges and considerations for managing a monolithic database, handling distributed transactions, and implementing interservice communication.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCampยท2y

    How to Optimize Search Queries in MongoDB

    Learn how to optimize search queries in MongoDB by understanding MongoDB queries, query examples, implementing search queries in Node.js using Mongoose, and searching between texts in MongoDB.

  11. 11
    Article
    Avatar of communityCommunity Picksยท2y

    A better deletion approach than soft delete

    An alternative deletion approach that avoids the drawbacks of soft deletes in backend applications.

  12. 12
    Article
    Avatar of gcgitconnectedยท2y

    Mastering SQL Fundamentals

    This post provides a comprehensive guide to mastering SQL fundamentals, covering database terminology, relational models, applying SQL to real data, creating a new schema in MySQL, querying data using the SELECT statement, filtering data using the WHERE clause, ordering results using the ORDER BY clause, using logical and special operators, and understanding the importance of query efficiency. Mastery of SQL is emphasized as a valuable skill for data professionals.

  13. 13
    Article
    Avatar of freecodecampfreeCodeCampยท2y

    ACID Databases โ€“ Atomicity, Consistency, Isolation & Durability Explained

    Learn about ACID databases and their key properties: atomicity, consistency, isolation, and durability. Understand how transactions work and the guarantees they provide. Explore real-world examples and analogies.

  14. 14
    Article
    Avatar of freecodecampfreeCodeCampยท2y

    How to Perform CRUD Operations with Django Models

    Learn how to perform CRUD operations with Django Models, including creating, reading, updating, and deleting objects. Explore the Model-View-Template (MVT) architecture and learn how to register models in the admin interface.

  15. 15
    Article
    Avatar of medium_jsMediumยท2y

    The DB, The Lock and The Index

    Databases play a crucial role in application performance and data storage. Factors such as relationships, types and schema compatibility, replication and partitioning, storage and retrieval patterns, and purpose of access influence the choice of a database. Locks are used for concurrency control in databases, ensuring data integrity. The b-tree index is a secondary data structure that speeds up data retrieval by a certain condition.

  16. 16
    Video
    Avatar of t3dotggTheo - t3โ€คggยท2y

    How To Pick A Tech Stack In 2024

    The specific technologies you pick are not what determines if you succeed or fail. It is more important to build the skills and problem-solving abilities to overcome challenges. Confidence in your chosen technologies is more valuable than the individual implementation details.

  17. 17
    Article
    Avatar of communityCommunity Picksยท2y

    How Cloudflare Was Able to Support 55 Million Requests per Second With Only 15 Postgres Clusters

    Cloudflare achieved the ability to support 55 million requests per second using only 15 Postgres clusters. They utilized PgBouncer as a connection pooler to manage Postgres connections, avoided the thundering herd problem, employed high-performance bare metal servers instead of cloud infrastructure, used the TCP Vegas congestion avoidance algorithm for concurrency management, ordered queries at the PgBouncer layer, and ensured high availability with the Stolon cluster manager.

  18. 18
    Article
    Avatar of medium_jsMediumยท2y

    System Design Cheatsheets: ScyllaDB

    ScyllaDB is a high-performance database gaining popularity, similar to Cassandra but with more efficient utilization of hardware resources.

  19. 19
    Article
    Avatar of kdnuggetsKDnuggetsยท2y

    A Step by Step Guide to Reading and Understanding SQL Queries

    Learn how to read and understand complex SQL queries with a step-by-step guide. Understand the general SQL query structure, the final SELECT, the final conditions clause, the final join, and practice reverse order reading.

  20. 20
    Article
    Avatar of planetscalePlanetScaleยท2y

    Working with geospatial features in MySQL

    This post explores how complex data and geographic features can be represented in MySQL. It covers the spatial data types supported by MySQL, the primary spatial data formats, and common spatial functions used for manipulating and analyzing geographic data in MySQL.

  21. 21
    Video
    Avatar of communityCommunity Picksยท2y

    Please Stop Putting Functions In Your Database

    The post argues against putting functions in databases and discusses the negative consequences of doing so, including the concept of role security and its impact on API logic.