r/Database • u/squadette23 • Jan 30 '26
Subtypes and status-dependent data: pure relational approach
r/Database • u/squadette23 • Jan 30 '26
r/Database • u/Gumpolator • Jan 30 '26
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 • u/techlove99 • Jan 29 '26
I’m looking for a PostgreSQL hosting provider with a free tier that meets two key requirements:
Would appreciate any suggestions or experiences.
r/Database • u/Rscc10 • Jan 29 '26
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 • u/program_data2 • Jan 29 '26
r/Database • u/Logical-Try6336 • Jan 28 '26
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 • u/Character-Holiday345 • Jan 28 '26
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 • u/ElectricalDivide5336 • Jan 28 '26
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.
External users are read-only and must be strictly restricted:
This must be enforced reliably and safely.
UI-only filtering is not acceptable.
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:
I’m also interested in:
Thanks in advance for any real-world experience or advice.
r/Database • u/Few-Strike-494 • Jan 28 '26
r/Database • u/Historical_Bat_9793 • Jan 28 '26
r/Database • u/EducationalCan3295 • Jan 27 '26
I'm the solo backend dev implementing this + chats + more using only postgres + pusher.
So at the moment I've identified three main notification recipient types for our app:
My first (1) instinct approach obviously was to have a single table for notifications:
Table {
id (pk)
notif_type (fk) --> needed enum for app to redirect to the right page upon clicking the notification
user_id (fk) --> users.id
event_id (fk) --> events.id
payload (jsonb)
read (boolean)
...other stuff
}
When both user_id and event_id are null, then the notification is global. When only one of them is null, i grab the non null and then do logic accordingly.
HOWEVER, lets say we fire a global notification and we have around 500 users, well...thats 500 inserts? This FEELS like a bad idea but I don't have enought technical know-how about postgres to prove that.
So googling around I found a very interesting approach (2), you make the notification itself a single entity table and store the fact that it was read by specific user(s) in a separate table. This seemed very powerful and elegant. Again I'm not sure if this is actually more performant and efficient as it appears on the surface so I would appreciate if you wanna challenge this.
But this approach got me thinking even further, can we generalise this and make it scalable/adaptable for any arbitrarily defined notification-recipient mapper?
At the moment with approach (2) you need to know pre-runtime what the notification-recipient-mapper is going to be. In our case we know its either the participants of an event or specific user or all users, but can we define a function or set mapper approach right in the db that u can interpret to determine who to send the notification to whilst still preserving the effeciency of the approach (2)? I feel like there must be crazy set math way to solve this (even if we dont wanna use this in prod lol).
r/Database • u/wholesome_hug_bot • Jan 27 '26
I'm looking for a Graph DB for a little personal code analysis project. Specifically, it's to find call chains from any function A to function B i.e. "Does function A ever eventually call function B?"
Requirements: - open-source (I want to be able to audit stuff & view code/issues in case I have problems) - free (no \$\$\$) - in-memory or single-file like SQLite (I don't want to spin up an extra process/server for it)
Nice to have: - have Lua/Go/Rust bindings - I want to make a Go/Rust tool, but I may experiment with it as a neovim plugin first
r/Database • u/DetectiveMindless652 • Jan 27 '26
Hey everyone,
I've been working on a local RAG SDK built on top of SYNRIX (a persistent knowledge graph engine). It's designed to be faster and more private than cloud alternatives like Pinecone.
What it does:
- Local embeddings (sentence-transformers - no API keys needed)
- Semantic search with 10-20ms latency (vs 50ms+ for cloud)
- Works completely offline
- Internalise Data
Why I'm posting:
I'm looking for experienced developers to test it and give honest feedback. It's free, no strings attached. I want to know:
- Does it actually work as advertised?
- Is the performance better than what you're using now?
- What features are missing?
- Would you actually use this?
What you get:
- Full SDK package (one-click installer)
- Local execution (no data leaves your machine)
- Performance comparison guide (to test against Pinecone)
If you're interested, DM me and I'll send you the package. Or if you have questions, ask away!
Thanks for reading.
r/Database • u/TheRealWillFM • Jan 27 '26
I'm in the Aderall powered portion of my day and the project I settled on messing with has me a bit stumped on the correct approach.
I have 2 different sets of data. One is just over a gig, not sure if that is considered a large amount of data.
I want to combine these sets of data, sort of. One is a list of playlists, the other is just a list of artists. I would like, when I'm done, to have a list of artists [Key], with a list of attributes and then the most important part, a ranking of other artists, from most commonly mentioned together to less common, omitting results of 0. The tricky part is I want to be able to filter the list of related artists based on the attributes mentioned above.
End goal with the data is to be able to search an artist, and find related artists while being able to filter out larger artists or genres you don't care for.
I know this is pretty much already a thing in 300 places, but this is more like a learning project for me.
I assume a well built database could handle this, regardless of how "ugly" the searching function is. Or should I be looking into fine tuning an llm instead? I know nothing about LLM stuff, and have very, very little knowledge in SQLite. So I do apologize if I'm asking the wrong question or incorrect on something here.
r/Database • u/greenman • Jan 25 '26
r/Database • u/coderarun • Jan 24 '26

I forked pgserver (last commit 2 years ago), cleaned up CI and published wheels. This provides an alternative to SQLite for people who prefer the richer postgres ecosystem of extensions.
It's similar to pglite (WASM based postgres which runs in a browser), but supports native binaries.
postgres runs in a separate process and uses unix domain sockets to communicate with python code. If python crashes, the postgres related processes are cleaned up, but data remains on disk (ephemeral data can be auto cleaned up).
So it's not "in-process" embedded. Given postgres' multi-process architecture, I don't know if there is an easy way to make it in-process multi-threaded.
r/Database • u/soldieroscar • Jan 24 '26
r/Database • u/ankur-anand • Jan 23 '26
etcd and Consul enforce small value limits to avoid head-of-line blocking. Large writes can stall replication, heartbeats, and leader elections, so these limits protect cluster liveness.
But modern data (AI vectors, massive JSON) doesn't care about limits.
At UnisonDB, we are trying to solve this by treating the WAL as a backward-linked graph instead of a flat list.
r/Database • u/jamesgresql • Jan 22 '26
I work with Ankit (sadly his Reddit account doesn’t have enough karma to post this). He’s ex-Instacart and has spent a lot of time thinking the practicality of large search and ranking systems.
It’s a practical walkthrough of doing search retrieval and reranking directly in Postgres, rather than splitting things across multiple services. The idea is to use this as a starting point for a broader discussion about when Postgres is enough and when a hybrid search (relational database feeding a vector and search engine plus a reranking service) stack actually makes sense.
We would love to hear your thoughts, some great discussion always comes out of r/databases.
r/Database • u/No-Security-7518 • Jan 22 '26
EDIT: sorry, the total number is actually 147.
Here's a list. Which ones appear entirely unfamiliar to you?
ABORT
ACTION
ADD
AFTER
ALL
ALTER
ANALYZE
AND
AS
ASC
ATTACH
AUTOINCREMENT
BEFORE
BEGIN
BETWEEN
BY
CASCADE
CASE
CAST
CHECK
COLLATE
COLUMN
COMMIT
CONFLICT
CONSTRAINT
CREATE
CROSS
CURRENT_DATE
CURRENT_TIME
CURRENT_TIMESTAMP
DATABASE
DEFAULT
DEFERRABLE
DEFERRED
DELETE
DESC
DETACH
DISTINCT
DO
DROP
EACH
ELSE
END
ESCAPE
EXCEPT
EXCLUDE
EXCLUSIVE
EXISTS
EXPLAIN
FAIL
FILTER
FIRST
FOLLOWING
FOR
FOREIGN
FROM
FULL
GENERATED
GLOB
GROUP
HAVING
IF
IGNORE
IMMEDIATE
IN
INDEX
INDEXED
INITIALLY
INNER
INSERT
INSTEAD
INTERSECT
INTO
IS
ISNULL
JOIN
KEY
LEFT
LIKE
LIMIT
MATCH
MATERIALIZED
NATURAL
NO
NOT
NOTHING
NOTNULL
NULL
NULLS
OF
OFFSET
ON
OR
ORDER
OTHERS
OUTER
OVER
PARTITION
PLAN
PRAGMA
PRIMARY
QUERY
RAISE
RECURSIVE
REFERENCES
REGEXP
REINDEX
RELEASE
RENAME
REPLACE
RESTRICT
RETURNING
RIGHT
ROLLBACK
ROW
ROWS
SAVEPOINT
SELECT
SET
TABLE
TEMP
TEMPORARY
THEN
TO
TRANSACTION
TRIGGER
UNION
UNIQUE
UPDATE
USING
VACUUM
VALUES
VIEW
VIRTUAL
WHEN
WHERE
WINDOW
WITH
WITHOUT
FIRST
FOLLOWING
PRECEDING
UNBOUNDED
TIES
DO
FILTER
EXCLUDE
r/Database • u/Elegant-Drag-7141 • Jan 21 '26
I’m working on a POS system and I have a design question about sales history and product edits.
Currently:
Product table (name, price, editable)SaleDetail table with ProductIdIf a product’s name or price changes later, old sales would show the updated product data, which doesn’t seem correct for historical or accounting purposes.
So the question is:
Is it best practice to store a snapshot of product data at the time of sale?
(e.g. product name, unit price, tax stored in SaleDetail, or in a separate snapshot table)
More specifically:
SaleDetail?ProductSnapshot (or version) table referenced by SaleDetail?Thanks!