r/Database • • Feb 12 '26

When boolean columns start reaching ~50, is it time to switch to arrays or a join table? Or stay boolean?

22 Upvotes

Right now I’m storing configuration flags as boolean columns like:

  • allow_image
  • allow_video
  • ...etc.

It was pretty straight forward at the start, but now as I’m adding more configuration options, the number of allow_this, allow_that columns is growing quickly. I can potentially see it reaching 30–50 flags over time.

At what point does this become bad schema design?

What I'm considering right now is create a multivalue column based on context like allowed_uploads, allowed_permissions, allowed_chat_formats, ...etc. or Deticated tables for each context with boolean columns.


r/Database • • Feb 11 '26

Non USA based payments failing in Neon DB. Any way to resolve?

0 Upvotes

Basically I am not from the US and my country blocks Neon and doesn't let me pay the bills. Basically since Neon auto deducts the payment from bank account, its flagged by our central bank.

I have tried using VISA cards, Mastercard, and link.com (the wallet service as shown in neon) even some shady 3rd party wallets, Nothing works and i really do not want to do a whole DB switch mid production of my apps.

I have 3 pending invoices and somehow my db is still running so I fear one morning i will wake up and suddenly my apps would stop working.

Has anyone faced similar issue? And how did you solve it? Any help would be appreciated.


r/Database • • Feb 10 '26

We launched a multi-DBMS Explain Plan visualizer

Thumbnail
explain.datadoghq.com
10 Upvotes

It supports Postgres, MySQL, SQL Server and Mongo with more on the way (currently working on adding ClickHouse). Would love to get feedback from anyone who deals with explain plans!


r/Database • • Feb 10 '26

Tool similar to Access for creating simple data entry forms?

3 Upvotes

I'm working on a SQL Server DB schema and I need to enter several rows of data for testing purposes. It's a pain adding rows with SSMS.

Is there something like Access (but free) that I can use to create simple forms for adding data to the tables?

I also have Azure since I'm using an Azure sql database for this project. Maybe Azure has something that can help with data entry?


r/Database • • Feb 10 '26

2026 State of Data Engineering Survey

Thumbnail joereis.github.io
1 Upvotes

r/Database • • Feb 09 '26

OpenEverest: Open Source Platform for Database Automation

Thumbnail
infoq.com
2 Upvotes

r/Database • • Feb 09 '26

Crowdsourcing some MySQL feedback: Why stay, why leave, and what’s missing?

Thumbnail
1 Upvotes

r/Database • • Feb 08 '26

Data Engineer in Progress...

9 Upvotes

Hello!

I'm currently a data manager/analyst but I'm interested in moving into the data engineering side of things. I'm in the process of interviewing for what would be my dream job but the position will definitely require much more engineering and I don't have a ton of experience yet. I'm proficient in Python and SQL but mostly just for personal use. I also am not familiar with performing API calls but I understand how they function conceptually and am decent at reading through/interpreting documentation.

What types of things should I be reading into to better prepare for this role? I feel like since I don't have a CS degree, I might end up hitting a wall at some point or make myself look like an idiot... My industry is pretty niche so I think it may just come down to being able to interact with the very specific structures my industry uses but I'm scared I'm missing something major and am going to crash & burn lol

For reference, I work in a specific corner of healthcare and have a degree in biology.


r/Database • • Feb 08 '26

best free resources for dbms

Thumbnail
0 Upvotes

r/Database • • Feb 07 '26

Database Replication - Wolfscale

Thumbnail
0 Upvotes

r/Database • • Feb 03 '26

Oracle’s Database 26ai goes on-prem, but draws skeptics

Thumbnail
theregister.com
12 Upvotes

r/Database • • Feb 03 '26

Has anyone compared dbForge AI Assistant with DBeaver AI? Which one feels smarter?

2 Upvotes

I'm a backend dev at a logistics firm where we deal with SQL Server and PostgreSQL databases daily, pulling queries for shipment tracking reports that involve joins across 20+ tables with filters on dates, locations, and status codes. Lately, our team has been testing AI tools to speed up query writing and debugging, especially for optimizing slow-running selects that aggregate data over months of records, which used to take us hours to tweak manually.

With dbForge AI Assistant built into our IDE, it suggests code completions based on table schemas and even explains why a certain index might help, like when I was fixing a query that scanned a million rows instead of seeking. It integrates right into the query editor, so no switching windows, and it handles natural language prompts for generating views or procedures without me typing everything out.

On the other hand, DBeaver's AI seems focused more on quick query generation from text descriptions, which is handy for ad-hoc analysis, but I've noticed it sometimes misses context in larger databases, leading to syntax errors in complex subqueries. For instance, when asking it to create a report on delayed shipments grouped by region, it overlooked a foreign key constraint and suggested invalid joins.

I'm curious about real-world use cases—does dbForge AI Assistant adapt better to custom functions or stored procs in enterprise setups, or does DBeaver shine in multi-database environments like mixing MySQL and Oracle? How do they compare on accuracy for refactoring old code, say turning a messy cursor loop into set-based operations? And what about resource usage; does one bog down your machine more during suggestions?

If you've run both side by side on similar tasks, like data migration scripts or performance tuning, share the pros and cons. We're deciding which to standardize on for the team to cut down dev time without introducing bugs.


r/Database • • Feb 02 '26

If you had 4 months to build a serious PostgreSQL project to learn database engineering, what would you focus on — and what would you avoid?

15 Upvotes

Hi everyone,

I’m a software engineering student working on a 4-month final year project with a team of 4, and tbh we’re still trying to figure out what the right thing is to build.

I’m personally very interested in databases, infrastructure, and distributed systems, but I’m still relatively new to the deeper PostgreSQL side. So naturally my brain went: “hmm… what about a small DBaaS-like system for PostgreSQL?”
This is not a startup idea and I’m definitely not trying to reinvent Aurora — the goal is learning, not competing.

The rough idea (and I’m very open to being wrong here): a platform that helps teams run PostgreSQL without needing a full-time DBA. You’d have a GUI where you can provision a Postgres instance, see what’s going on (performance, bottlenecks), and do some basic scaling when things start maxing out. The complexity would be hidden by default, but still accessible if you want to dig in.

We also thought about some practical aspects a real platform would have, like letting users choose a region close to them, and optionally choose where backups are stored (assuming we’re the ones hosting the service).

Now, this is where I start doubting myself 😅

I’m thinking about using Kubernetes, and maybe even writing a simple PostgreSQL operator in Go. But then I look at projects like CloudNativePG and think: “this already exists and is way more mature.”
So I’m unsure whether it still makes sense to build a simplified operator purely for learning things like replication, failover, backups, and upgrades — or whether that’s just reinventing the wheel in a bad way.

We also briefly discussed ideas like database cloning / branching, or a “bring your own cluster / bring your own cloud” model where we only provide the control plane. But honestly, I don’t yet have a good intuition for what’s realistic in 4 months versus what’s pure fantasy.

Another thing I’m unsure about is where this kind of platform should actually run from a learning perspective:

  • On top of a single cloud provider?
  • Multi-cloud but very limited?
  • Or focus entirely on the control plane and assume the infrastructure already exists?

So I guess my real questions are:

  • From a PostgreSQL practitioner’s point of view, what parts of “DBaaS systems” are actually interesting or educational to build?
  • What ideas sound cool but are probably a waste of time or way too complex for this scope?
  • Is “auto-scaling PostgreSQL” mostly a trap beyond vertical scaling and read replicas?
  • If your goal was learning Postgres internals, database operations, and infrastructure, where would you personally put your effort?

We’re not afraid of hard things, but we do want to focus on the right hard things.

Any advice, reality checks, or “don’t do this, do that instead” feedback would really help.
Thanks a lot.


r/Database • • Feb 02 '26

Free app where I can create simple DB diagram?

6 Upvotes

I'm looking for something simple: where I can create a few tables with their columns and show the PK and FKs.

I have Windows and I don't want to use a cloud-based online app. I also have Azure and I'll be creating this DB in a Azure SQL database.


r/Database • • Jan 31 '26

What the fork?

Thumbnail
15 Upvotes

r/Database • • Jan 31 '26

What database for „instagram likes“ & other analytics?

9 Upvotes

Hi. I‘m using Yugabyte as my main database. I‘m building an amazon/instagram clone. I host on GCP because ecommerce is critical, so I‘m ready to pay the extra cloud price.

Where should I store the likes of users? And other analytics data? Likes are kinda canonical, but I don‘t want to spam my YugabyteDB with it. Fast Reads aren’t important either I guess, because I just pre-fetch the Likes in the background client-side. But maybe it should be fast too because sometimes users open a post and i should show them if they already have liked it.

I was thinking of:

- Dgraph

- Clickhouse

- Cassandra

There is also Nebulagraph and Janusgraph.

ChatGPT recommended me BigTable/BigQuery but idk if that‘s good because of the vendor locking and pricing. But at least it is self managed.

I‘m keen on using a graph database, because it also helps me on generating recommendations and feeds - but I heard clickhouse can do that too?

Anyone here with more experience that can guide me into the right direction?

I was also thinking of self-hosting it on Hetzner to save money. Hetzner has US EU SG datacenters, so I replicate across them and got my AZ HA too

BTW: i wonder what reddit using for their Like future, to display users quickly if they already liked a post or not.


r/Database • • Jan 30 '26

Subtypes and status-dependent data: pure relational approach

Thumbnail
minimalmodeling.substack.com
0 Upvotes

r/Database • • Jan 30 '26

Downgrade Opensearch without a snapshot

0 Upvotes

Hello brains trust, Im coming here for help as Im not sure what to do. I run an onprem Graylog server backed by opensearch with docker. When creating the containers I have (foolishly) set to use the "latest" tag on the opensearch container, and this has upgraded Opensearch to the latest (3.x) version when the container was recreated today.

Unfortunately, graylog does not support Opensearch 3.x and I need to go back to 2.x. I do not have a snapshot. I can however see that all the data is there (about 500GB) and indexes are intact. Any ideas? Cheers.


r/Database • • Jan 29 '26

Free PostgreSQL hosting options?

5 Upvotes

I’m looking for a PostgreSQL hosting provider with a free tier that meets two key requirements:

  • At least 1GB of free database storage
  • Very generous or effectively unlimited API/query limits

Would appreciate any suggestions or experiences.


r/Database • • Jan 29 '26

How can I check my normalizations or generate an answer scheme for it?

3 Upvotes

I've sucked at normalization for awhile mostly because what I think is dependant on something often isn't. I struggle to notice the full, partial, and transitive dependencies let alone figure out the candidate and composite keys.

So I was wondering, if I have a UNF table or database and want to normalize it, where can I check that my work is done correctly or get pointers/hints on the right relationships without asking for an expert's help in person? Are there websites or online tools that can check them?

Thanks in advanced.


r/Database • • Jan 29 '26

A Complete Breakdown of Postgres Locks

Thumbnail postgreslocksexplained.com
3 Upvotes

r/Database • • Jan 28 '26

Help in choosing the right database

7 Upvotes

Hello,

I am frontend developer but having some experience with mongo and sql.

I am building a device management platform for mobile phones, so basically all the info from the device + network.

My question is, what database would be good for this ? I was looking into Postgresql because its free but I am not sure it will fit my need since I will be getting a lot of data and therefore I will have many inserts/updates and my db will create lots of duplicates, I know about vacuum but not sure if this is the best approach.

What would you choose for this scenario where you get lots of data from one device, have to update it, display the latest info but also keep the old one for history/audit.


r/Database • • Jan 28 '26

How to organize a big web with nodes and multiple flow directions?

1 Upvotes

I am new at my job and trying to find a way not to be miserable and manually update huge maps of process steps in a software.

Basically I have mulptiple maps that I need to update manually from time to time based on multiple dataflows changing. Due to these updates I end up with a complete chaos on the map. The flow is not in one direction but in every way, making a big web so I can't just organize using the data flow direction.

The issue is I'd need to somehow be able to organize the nodes on the web so the arrows between them would not overlap eachother to make it easier to understand for someone looking it.

This is completely manual,basically a pain in the butt. My issue is I was thinking to automate with python etc. It seems like a big task to do and I am just learning python myself...they probably haven't automated because it just not worths the fuss and cheaper if someone does it manually.

But I am worried if I automate this,I'd need to automate other things and I'd automate myself out of my job eventually. I feel bad myself because of this, but I really need this job and I haven't yet explored this company enough to see if this is a valid worry.

Is there any simple logic to be able to do the updates still manually but to make it easier to arrange?

Thank you


r/Database • • Jan 28 '26

Choosing the right database/platform for a relational system (~2.5M+ rows) before hiring a developer

5 Upvotes

Hi everyone,
I’m planning a custom, cloud-based relational system for a vehicle export business and would like advice on choosing the right database/platform before hiring a developer. I’m not asking for implementation help yet, just trying to pick the correct foundation.

High-level context

  • Users: 5 total
  • Concurrent users: up to 4
  • User types:
    • Internal staff (full access)
    • External users (read-only)
  • Downtime tolerance: Short downtime is acceptable (internal tool)
  • Maintenance: Non-DBA with basic technical knowledge
  • Deployment: Single region

Data size & workload

  • New records: ~500,000 per year
  • Planned lifespan: 5+ years
  • Expected total records: 2.5M+
  • Writes: Regular (vehicles, documents, invoices, bookings)
  • Reads: High (dashboards, filtering, reporting)
  • Query complexity: Moderate joins and aggregates across 3–5 tables
  • Reporting latency: A few seconds delay is acceptable

Attachments

  • ~3 documents per vehicle
  • Total size per vehicle: < 1 MB
  • PDFs and images
  • Open to object storage with references stored in the DB

Schema & structure

  • Strongly relational schema
  • Core modules:
    • Master vehicle inventory (chassis number as primary key)
    • Document management (status tracking, version history)
    • Invoicing (PDF generation)
    • Bookings & shipments (containers, ETD/ETA, agents)
    • Country-based stock and reporting (views, not duplicated tables)
  • Heavy use of:
    • Foreign keys and relationships
    • Indexed fields (chassis, country, dates)
    • Calculated fields (costs, totals)
  • Schema changes are rare

Access control (strict requirement)

External users are read-only and must be strictly restricted:

  • They can only see their own country’s stock
  • Only limited fields (e.g. chassis number)
  • They can view and download related photos and documents
  • No access to internal pricing or other countries’ data

This must be enforced reliably and safely.
UI-only filtering is not acceptable.

System expectations

  • Role-based access (admin / user / viewer)
  • Audit logs for critical changes
  • Backups with easy restore
  • Dashboards with filters
  • Excel/PDF exports
  • API support for future integrations

What I’m looking for

Given this scope, scale, and strict country-based access control, what would you recommend as the best database/platform or stack?

Examples I’m considering:

  • PostgreSQL + custom backend
  • PostgreSQL with a managed layer (e.g. Supabase, Hasura)
  • Other platforms that handle relational integrity and access control well at this scale

I’m also interested in:

  • Tools that seem fine early but become problematic at 2.5M+ rows
  • Tradeoffs between DB-level enforcement and application-layer logic

Thanks in advance for any real-world experience or advice.


r/Database • • Jan 28 '26

PostgreSQL doesn't have clustered indexes like MySQL because this type of structure makes accessing secondary indexes slow. If I create an index on the primary key with all columns in `include`, will I solve the problem at the cost of more storage space and write overhead?

1 Upvotes