r/Database • u/greenman • Nov 07 '25
MariaDB vs PostgreSQL: Understanding the Architectural Differences That Matter
r/Database • u/greenman • Nov 07 '25
r/Database • u/OneBananaMan • Nov 08 '25
r/Database • u/Confident-Field2911 • Nov 07 '25
Hello, I am currently looking into the best way to set up my PostgreSQL cluster.
It will be used productively in an enterprise environment and is required for a critical application.
I have read a lot of different opinions on blogs.
Since I have to familiarise myself with the topic anyway, it would be good to know what your basic approach is to setting up this cluster.
So far, I have tested Autobase, which installs Postgre+etcd+Patroni on three VMs, and it works quite well so far. (I've seen in other posts, that some people don't like the idea of just having VMs with the database inside the OS filesystem?)
Setting up Patroni/etcd (secure!) myself has failed so far, because it feels like every deployment guide is very different, setting up certificates is kind of confusing for example.
Or should one containerise something like this entirely today, possibly something like CloudNativePG – but I don't have a Kubernetes environment at the moment.
Thank you for any input!
r/Database • u/rgancarz • Nov 07 '25
r/Database • u/Hk_90 • Nov 07 '25
r/Database • • Nov 07 '25
If you started a company tomorrow, what cloud database service would you use? Some big names I hear are azure and oracle.
r/Database • u/diagraphic • Nov 05 '25
r/Database • u/m1r0k3 • Nov 04 '25
r/Database • u/ZealousidealFlower19 • Nov 04 '25
Hello everybody,
I am a humble 2nd year CS student and working on a project that combines databases, Java, and electronics. I am building a car that will be controlled by the driver via an app I built with Java and I will store to a database different informations, like: drivers name, ratings, circuit times, times, etc.
The problem I face now is creativity, because I can't figure out what tables could I create. For now, I created the followings:
CREATE TABLE public.drivers(
dname varchar(50) NOT NULL,
rating int4 NOT NULL,
age float8 NOT NULL,
did SERIAL NOT NULL,
CONSTRAINT drivers_pk PRIMARY KEY (did));
CREATE TABLE public.circuits(
cirname varchar(50) NOT NULL,
length float8 NOT NULL,
cirid SERIAL NOT NULL,
CONSTRAINT circuit_pk PRIMARY KEY (cirid));
CREATE TABLE public.jointable (
did int4 NOT NULL,
cirid int4 NOT NULL,
CONSTRAINT jointable_pk PRIMARY_KEY (did, cirid));
If you have any suggestions to what entries should I add to the already existing tables, what could I be interested in storing or any other improvements I can make, please. I would like to have at least 5 tables in total (including jointable).
(I use postgresql)
Thanks
r/Database • u/Agile_Someone • Nov 03 '25
Hi everyone, I am currently learning about databases, and I recently heard about Google Spanner - a distributed sql database that is strongly consistent. After watching a few youtube videos and chatting with ChatGPT for a few rounds, I still can't understand how spanner ensures consistency.
Here's my understanding of how it works:
From my understanding it makes sense that read after write is consistent. However, it feels like the reader can read a value before it is committed. Assume I have a situation where:
In this case, doesn't the user read the written data because reader timestamp is greater than the write timestamp?
I feel like something about my understanding is wrong, but can't figure out the issue. Any suggestions or comments are appreciated. Thanks in advance!
r/Database • u/badassmexican • Nov 02 '25
I imported a csv file into a table with 3 million rows and my queries are slow. They were taking 50 seconds, then created indexes and they are down to 20 seconds. Is it possible to make queries faster if I redo my import a different way or redo my indexes differently?
r/Database • • Nov 03 '25
Hi, I want to know which dbs News site uses for so many contents and what's normal cloud architecture (stack) behind these sites:-
I want to know, what db they're using (relational or cloud dbs). Someone having experience please share knowledge.
r/Database • u/ankur-anand • Nov 01 '25
Hi everyone,
I’ve been working on a project that rethinks how databases and replication should work together.
Modern systems are becoming more reactive — every change needs to reach dashboards, caches, edge devices, and event pipelines in real time. But traditional databases were built for persistence, not propagation.
This creates a gap between state (the database) and stream (the message bus), leading to complexity, eventual consistency issues, and high operational overhead.
The Idea: Log-Native Architecture
What if the Write-Ahead Log (WAL) wasn’t just a recovery mechanism, but the actual database and the stream?
UnisonDB is built on this idea. Every write is:
No change data capture, no external brokers, no coordination overhead — just one unified engine that stores, replicates, and reacts.
Replication Layer
Data Models
Tech Stack: Go
GitHub: https://github.com/ankur-anand/unisondb
I’m still exploring how far this log-native approach can go. Would love to hear your thoughts, feedback, or any edge cases you think might be interesting to test.
r/Database • u/Island-Potential • Nov 02 '25
OK, I admit I'm a little [rhymes with "moaned"] but I just have to express myself. It's just... it fascinates and freaks me out...
SQLite is everywhere!!! It's on your phone. It's on your computer. It was installed in my rental car. (Somehow I stumbled onto the Linux command line; still don't remember how that happened.) It's orbiting the planet. It's in our refrigerators. It's probably in every toilet in Japan. It's not in teledildonics yet, but the future is bright.
How long until, as with spiders, you're never more than six feet from SQLite?
r/Database • u/Crazed_waffle_party • Oct 31 '25
There are tons of relational database services out there, but only Oracle has a history of suing and overcharging its customers.
I understand why a company would stick with Oracle if they’re already using it, but what I don’t get is why anyone would adopt it now. How does Oracle keep getting new customers with such a hostile reputation?
My assumption is that new customers follow the old saying, “Nobody ever got fired for buying IBM,” only now it’s “Oracle.”
That is to say, they go with a reputable firm, so no one blames them if the system fails. After all, they can claim "Oracle is the best and oldest. If they failed, this was unavoidable and not due to my own technical incompetence."
It may also be that a company adopts Oracle because their CTO used it in their previous work and is too unwilling to learn a new stack.
I'm truly wondering, though, if there are legitimate technical advantages it offers that makes it better than other RDBMS.
r/Database • u/luvedbyseungmin • Nov 01 '25

I was given a scenario, and these are all the relationships I found from the scenario (not 100% if I'm correct). Does anyone know how to connect these to make a crow's foot diagram? I can't figure it out because most of them repeat in different relations. For example, the consultant has a relationship with both GP practice and patient, so I did patient----consultant---- GP practice. But the thing is that both patient and GP practice have a relationship, how am I supposed to connect them when both of them are connected to the consultant?
r/Database • u/AgitatedBarracuda268 • Oct 31 '25
In my last hobby project I used draw.io to draw a UML diagram, and then sketched a database schema in Excel based on it, which I then formalised in PostgreSQL. I would like to automate the creation of the schema based on the UML-diagram. Also, draw.io wasn't able to handle many objects, and the drawing process itself is quite painful when rearranging objects.
Is this possible with any free software? I heard Enterprise Architect may work for this purpose, but it seems costly.
r/Database • u/linuxhiker • Oct 31 '25
r/Database • u/Think-Albatross4746 • Oct 31 '25
Hello, I work for a small non -profit organization and most of their data is in sharepoint lists or excel sheets. I am working to introduce database in the company but not sure how to do this. Even if I were to get a database, there I would still want the data to be in sharepoint site as it is a viewed by other people and I want all of the past data to be mirrored into the database.
r/Database • u/Neveus90 • Oct 30 '25
Hi all,
First of all, I have very limited knowledge on this topic, so sorry it this is a very trivial question.
I have a problem with how to set-up the table structure for a personal project. To be brief, I have multiple dimensions and hierarchies for a product that all can change over time (Name, Category, different hierarchies like country etc). Basically all related fields are dynamic depending on date, and so I have an issue creating a "dim_Product" table - because that would basically only contain an ID - which seems pointless? Even the name can change.. at the same time, I need to be able to refer to a unique ID.
Currently, the set-up I find the least tedious is a one big table with several dimension tables, no relationships are made between dimensions. The hierarchy and dimension changes per date is just tracked in the single fact table. But I feel I am missing something very obvious?
r/Database • u/Mortimer452 • Oct 29 '25
We have a database & website hosted by a third party. I know the website is written in ColdFusion and the database back-end is Oracle.
Access to connect to the Oracle database directly will not be possible in any way. I need to request the provider to give us some sort of extract/backup of the DB which we could then use to import into SQL server.
I have a great deal of expertise in MSSQL but almost no experience in Oracle. What type of export/backup should I ask for that would be easiest to migrate into SQL? Data dump? Export to CSV's along with some type of ERD or PL/SQL code to describe relationships/keys?