Best of DatabaseApril 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    Dokploy/dokploy: Open Source Alternative to Vercel, Netlify and Heroku.

    Dokploy is a self-hostable PaaS that simplifies deployment and management of applications and databases using Docker and Traefik. It supports various types of applications and databases, integrates with Traefik for routing and load balancing, offers real-time monitoring and automated database backups.

  2. 2
    Article
    Avatar of gcgitconnected·2y

    System Design Interview Question: Design URL Shortener

    Designing a URL shortener tool requires considering functional and non-functional requirements, estimating the number of unique URLs needed, and implementing key components like users, load balancer, web servers, URL shortener service, and database. The API design includes creating a short URL and redirecting to the long URL. The database should be optimized for fast read and write operations, and the URL shortener service can use methods like hashing, auto-increment IDs, or custom algorithms. Caching and database scaling strategies are important for high availability and low latency. Security considerations include input validation, rate limiting, monitoring and logging, obfuscation, and link expiration.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How To Set Up TypeORM DataSource in Your NestJS Project

    Learn how to set up TypeORM DataSource in your NestJS project. TypeORM is an ORM tool for Node.js and TypeScript applications, while NestJS is a Node.js framework. The tutorial covers the prerequisites, project setup, and setting up the TypeORM DataSource for data persistency. It also includes extending the DataSource repository for custom methods.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Database Tips & Tricks

    Improve your understanding of SQL and discover useful features of databases to save development time and optimize performance.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Solving Concurrency Problems with Redis and Golang

    This post explores different solutions for solving concurrency problems in Redis and Golang, including atomic operations, transactions, LUA scripts, and locks.

  6. 6
    Video
    Avatar of communityCommunity Picks·2y

    How To Build A Next.js Coupon System Like A Senior Developer

    Learn how to build a custom coupon system in Next.js and integrate it with any payment provider, such as Stripe. This tutorial covers database modifications, admin pages, and implementation of discount codes.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    Setting Up PostgreSQL with Docker Made Easy

    Learn how to easily set up PostgreSQL with Docker, simplifying the deployment and testing processes.

  8. 8
    Article
    Avatar of towardsdevTowards Dev·2y

    What Is a Streaming Database?

    A streaming database is designed to process large amounts of real-time streaming data, providing real-time insights and analysis. It is ideal for latency-critical applications such as real-time analytics, fraud detection, network monitoring, and the Internet of Things (IoT). Streaming databases differ from traditional databases in their processing approach and can be used alongside other data systems for streaming ingestion and streaming analytics. They also differ from OLTP and OLAP databases in terms of ACID compliance, data correctness, and query optimization.

  9. 9
    Article
    Avatar of tigerdataTigerData (Creators of TimescaleDB)·2y

    10 psql Commands That Will Make Your Life Easier

    Learn 10 psql meta-commands that can make SQL queries on PostgreSQL easier. Explore commands like describing relations, editing the query buffer, toggling expanded output, and more.

  10. 10
    Video
    Avatar of communityCommunity Picks·2y

    The Problem With UUIDs

    The post discusses the problems with using UUIDs as primary keys in a database. Problem number one is the insert performance, while problem number two is the higher storage utilization.

  11. 11
    Video
    Avatar of communityCommunity Picks·2y

    The Ultimate Guide to Next.js Drizzle ORM Implementation & CRUD

    This post provides a step-by-step guide on implementing drizzle ORM in a Next.js app. It covers the implementation of spell books and spells, including CRUD operations. The post also includes instructions on installing the necessary dependencies.

  12. 12
    Article
    Avatar of hnHacker News·2y

    nalgeon/redka: Redis re-implemented with SQLite

    Redka is an implementation of Redis with SQLite, providing features such as data not needing to fit in RAM, ACID transactions, SQL views, and compatibility with Redis API.

  13. 13
    Article
    Avatar of communityCommunity Picks·2y

    Video encoded as emojis⁉️ Stored in a DB? 😱🤯

    The post explores the concept of converting a video into emojis, storing them in a database, and serving them as an image. It discusses the process of converting and storing pixel data, removing black bars, and encoding the data using a limited set of emojis. The author also explains how to retrieve the emojis from the database and showcases a demo of the concept.

  14. 14
    Article
    Avatar of javarevisitedJavarevisited·2y

    Building a Secure RESTful User CRUD with Spring Boot: A Step-by-Step Guide

    This post provides a step-by-step guide on building a secure RESTful user CRUD API using Spring Boot and MySQL. It explains the concept of RESTful APIs, highlights the benefits of using Spring Boot, and outlines the prerequisites for the project.

  15. 15
    Article
    Avatar of redislabsRedis·2y

    Redis is Google Cloud Ready

    Redis has achieved the Google Cloud Ready designation for CloudSQL and AlloyDB. The integration of Redis with Google Cloud databases offers advantages such as real-time experiences and improved user experiences.

  16. 16
    Video
    Avatar of primeagenThePrimeTime·2y

    Sqlite Is The Most Used Database

    SqLite is the most widely used and deployed database, with over 1 trillion active databases. It is used in various applications including Android devices, iPhones, Mac, Windows 10, browsers, Skype, iTunes, and more. SqLite is open source and maintained by three developers. The testing process for SqLite involves extensive code coverage, including regression tests, fuzz tests, and tests simulating system crashes and errors. Additionally, the post mentions Charles Babbage, known for his contribution to computing by creating the Difference Engine and Analytical Machine.

  17. 17
    Article
    Avatar of devopsDevOps.com·2y

    Valkey is Rapidly Overtaking Redis

    Valkey, a fork of Redis, is rapidly gaining support from top companies and developers. Many Fortune 500 businesses have switched from Redis to Valkey. Redis, the company behind the Redis software, is facing challenges as its customers move to Valkey.

  18. 18
    Article
    Avatar of minersThe Miners·2y

    Introducing Solid Queue for Background Jobs

    Introducing Solid Queue, a DB-based queuing backend for Active Job in Ruby on Rails 8.0. It provides simplicity and performance for background job processing, supports delayed jobs, queue priority, and native multiprocessing. Solid Queue can be used with SQL databases like PostgreSQL and MySQL. On the other hand, Redis-based background jobs offer scalability, advanced features, and a strong ecosystem. The choice between Solid Queue and Redis-based solutions depends on application complexity, scalability needs, and developer preferences.

  19. 19
    Article
    Avatar of hnHacker News·2y

    End of Life Announcement

    ElephantSQL is discontinuing its services and will reach its end of life on January 27, 2025. They will focus on AMQP protocol via CloudAMQP and LavinMQ instead. Existing customers will have access until the end of life date.

  20. 20
    Article
    Avatar of javarevisitedJavarevisited·2y

    Combining Data from Multiple Tables in SQL Without Using JOIN or UNION

    Techniques for combining data from multiple tables in SQL without using JOIN or UNION, including leveraging aggregated subqueries, utilizing EXISTS or NOT EXISTS, selective data insertion, and using temporary tables or CTEs.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    Introduction To Database Indexing

    Learn about database indexing and its importance in improving query performance. Discover the types of indexes and how they are stored in the database. Understand the trade-off between read performance and write operations.

  22. 22
    Article
    Avatar of lnLaravel News·2y

    Use the New Fluent Helper to Work With Multi-dimensional Arrays in Laravel 11.2

    Laravel 11.2 introduces a new Fluent Helper for working with multi-dimensional arrays and a Context Helper for managing context. It also includes improvements in database creation and wipe handling.

  23. 23
    Article
    Avatar of thisdotThis Dot·2y

    Intro to EdgeDB

    EdgeDB is a graph-relational database that provides a novel approach to handling common pain points in data modeling. It offers a powerful schema system, support for defining relations/associations, computed properties, and access policies. EdgeQL is the query language used to interact with the database. EdgeDB nudges users to move more application logic into the database layer, providing constraints, global variables, contexts, and authorization support out-of-the-box. EdgeDB offers both a basic client for executing queries and a TypeScript query builder for type-safe queries. The CLI and Admin UI provide additional tools for managing EdgeDB projects and databases.

  24. 24
    Article
    Avatar of systemdesigncodexSystem Design Codex·2y

    Introduction to ACID Properties

    This post introduces the ACID properties in the context of transactions, including atomicity, consistency, isolation, and durability. It explains the importance of atomicity in preventing data inconsistencies, the role of consistency in maintaining invariants, the challenges of isolation in concurrent access to the database, and the guarantee of durability in data storage.

  25. 25
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    A Clever Way To Implement Pessimistic Locking in EF Core

    Learn how to implement pessimistic locking in EF Core using raw SQL queries. See how to handle concurrent requests in high-traffic scenarios and avoid overbooking. Understand the flavors of locking and when to use them. Consider the benefits and drawbacks of pessimistic locking versus serializable transactions.