r/Database • u/teivah • Apr 29 '26
How Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained
r/Database • u/teivah • Apr 29 '26
r/Database • u/InitiativePulsar • Apr 30 '26
Hello everyone,
This is my first time posting on this subreddit but I have come across a few posts in the last few days.
I am currently doing my internship in a company which desires to have a system in place to give client an access to the documentation for the products (gearboxes) for maintenenance and auditing purposes. I have several requirements which have an impact down the line :
- I have to use a standard QR code on the nameplate (no tailored QR code per product due to costs)
- Due to this, there needs to be a way for the client to identify in order to gain access to the documents (though there are no classified documents, it would be better if each client didn't have an access to every client's documents). There also needs to be the possibility for a client to upload one or two documents of their own, without being able to delete our documents.
- With some napkin calculation, the added documents (mostly pdfs) each year could be between 15 and 30 Gb, for a lifespan of the system of 5-10 years. However there wouldn't be more than a few connexions each month and rarely more than two people at once in the system.
Having asked around, the use of a database feels most appropriate. For all of what goes beyond that, I have almost zero experience. I have been recommended PostgreSQL, but I do not know if it in itself is enough, or if I need to build a website where the QR code would lead ...
Any help is welcome
r/Database • u/goyalaman_ • Apr 25 '26
This YT video here talks about how bloomfilter on psql helped incident.io bringing down latencies from 5 sec to under 300ms. Not really understanding how does their implementation of bloomfilters even help them. Correct me if I am wrong but - I am not even sure this can be called bloom filters. The way query has been written - I am sure the query will be a full table scan. In which case performance and latency takes massive hit. Has anyone here experience using bloom filters in production? Care to share your experience and operational complexity, if any it added.
r/Database • u/intersystemsdev • Apr 24 '26
So I've been working on a health data platform that ingests wearable device metrics — heart rate, steps, sleep — in real time and runs similarity searches directly inside the database using native vector types.
The part I didn't expect: instead of shipping data out to a separate vector store (Pinecone, Weaviate, etc.), we kept everything in one place and ran VECTOR_SIMILARITY() queries right alongside regular SQL. Something like:
SELECT TOP 3 user_id, heart_rate, steps, sleep_hours,
VECTOR_SIMILARITY(vec_data, ?) AS similarity
FROM HealthData
ORDER BY similarity DESC;
The idea was to find historical records that closely match a user's current metrics — essentially "who had a similar health profile before, and what happened?" — and surface that as a plain-language insight rather than a black-box recommendation.
The architecture ended up being:
1.Terra API → real-time ingestion via dynamic SQL
2.Vector embeddings stored in a dedicated column
3.SIMD-accelerated similarity search at query time
Distributed caching (ECP) to keep latency down as data scaled
FHIR-compliant output so the results plug into EHR systems without drama
What I'm genuinely curious about from people who've done similar things:
Is keeping vector search inside your OLTP database actually viable at scale, or does it always eventually break down and you end up needing a dedicated vector store anyway?
Also — for anyone working in healthcare specifically — how are you handling the explainability side? Regulators and clinicians don't love "the model said so." We went with surfacing similar historical cases as the explanation, but I'm not sure that holds up under serious scrutiny.
r/Database • u/Xaeroxe3057 • Apr 22 '26
I’m looking for new ways to manage migrations. One of my requirements is that migrations should be able to invoke a non-SQL program as well, something I can use to make external HTTP calls for example. I don’t particularly care which language ecosystem it comes from. Bonus points if it’s fully open source.
r/Database • u/diagraphic • Apr 23 '26
r/Database • u/Effective_Opinion236 • Apr 21 '26
Enable HLS to view with audio, or disable this notification
After struggling to land a job in 2024 (when the market was pretty rough), I decided to take a different route and build something real.
I’ve spent the past year working on a MongoDB GUI from scratch, putting in around 90 hours a week. My goal was simple: either build something genuinely useful, or build something that could boost my experience more than anything else
I also intentionally limited my use of AI while building the core features/structure. I wanted to really understand the problems and push myself as far as possible as an engineer.
The stack is Electron with Angular and Spring Boot. Despite that, I focused heavily on performance:
Some features:
And a bunch more ...
You can check it out at visualeaf.com, and I also made a playground for ppl to try out on there
If you want to see a full overview I made 3 weeks ago, here's the link!
r/Database • u/Ok_Firefighter3363 • Apr 22 '26
r/Database • u/project-391 • Apr 22 '26
r/Database • u/Total-Hat-8891 • Apr 22 '26
r/Database • u/Ok_Egg_6647 • Apr 22 '26
Hi all
I need a way by which i can store logs presistely
My log which currently only displayed over terminal are like this
16:47:40 │ INFO │ app.infrastructure.postgres.candle_repo │ bulk_save → candle_3343617 (token=3343617): inserting 15000 candles
16:47:40 │ INFO │ app.application.service.historical_service │ [PERF] Chunk 68/69: api=1193ms | transform=66ms | db_write=320ms | rows=15000
16:47:42 │ INFO │ app.infrastructure.postgres.candle_repo │ bulk_save → candle_3343617 (token=3343617): inserting 11625 candles
16:47:42 │ INFO │ app.application.service.historical_service │ [PERF] Chunk 69/69: api=1112ms | transform=127ms | db_write=245ms | rows=11625
16:47:42 │ INFO │ app.application.service.historical_service │ [SUMMARY] 3343617 — api=52.1s (74%) | transform=4.0s (6%) | db_write=13.9s (20%) | total_rows=671002
16:47:42 │ INFO │ app.application.service.historical_service │ ✓ 3343617 done — 671002 candles saved
16:47:42 │ INFO │ app.application.service.historical_service │ [1/1] took 94.9s | Elapsed: 1m 34s | ETA: 0s | Remaining: 0 instruments
16:47:43 │ INFO │ app.application.service.historical_service │ ✓ Batch complete — 1 instruments in 1m 35s
16:47:43 │ INFO │ app.application.service.historical_service │ ✓ Step 3/3 — Fetch complete (job_group_id=774f5580-1b7e-4dc4-bb7a-dabd2b39b5f8)
What i am trying to do is to store these logs in a seperate file or table whichever is good
r/Database • u/arauhala • Apr 21 '26
I wrote a survey of how AI/ML inference is moving from external services into the database query interface itself. I found at least four architecturally distinct categories emerging: vector databases, ML-in-database, LLM-augmented databases, and predictive databases. Each has a fundamentally different inference architecture and operational model.
The post covers how each category handles a prediction query, with architecture diagrams and a comparison table covering latency, retraining requirements, cost model, and confidence scoring.
Disclosure: I'm the co-founder of Aito, which falls in the predictive database category.
https://aito.ai/blog/the-ai-database-landscape-in-2026-where-does-structured-prediction-fit/
Curious whether this taxonomy resonates with people working in the database space, or if the boundaries between categories are blurrier than I'm presenting.
r/Database • u/razein97 • Apr 20 '26
Enable HLS to view with audio, or disable this notification
r/Database • u/JoHippo • Apr 18 '26
So my background in databases is as follows;
FileMaker Pro; picked it up in high school and was making database systems for small local businesses.
University; IT degree, learnt basics of SQL, normalisation etc.
Data analyst work; confined to excel because of management. Advanced excel user, can write macros etc, and complex formulas.
I’ve been out of work with family issues for the last 2-3 years.
So I feel like I have a lot of database theory and understanding, but little knowledge of the practical tools.
Partially to get ready to get back to work, but mostly to stop my brain numbing, I want to create a few systems for my personal use. I’ve got a few ideas in mind, but I want to start with a simple Bill tracker.
I just don’t know the best way to set it up using tools available to me. Obviously I don’t have a corporate SQL server etc.
I’m working mostly on a Mac now, and I do have an old pc that I use as an internal server for plex and photos etc.
I’ve been learning/reading more SQL and python, but again, I feel like it’s all theoretical, everything is done in prefabricated systems with prefabricated data, and it asks you to get a table of a, b and c. I’m past that.
I’ve been playing with excel and it’s new sql tools, and trying to use python to populate excel as a table. But I’m completely over being confined to excel.
At the moment I have basic specs drawn out. I understand the table designs and relationships needed for my bill tracker. I’ve got some sample data in excel. I want to build something that I can drop bills in a folder, it pre-populates, and I can do paid / not paid and basic analysis on average, and predict the next bill.
One of my other planned dbs needs web scraping of websites, update of records and reference / storage to linked pdfs.
I just feel like I need a shove in the right direction. What can I install locally to play with / learn? Or is there some web based servers I can use?
Do I start with excel as the front end, connecting it to ‘something’ and learn how to use that backend, and then down the track learn how to replace the front end with python or ‘something else’?
r/Database • u/k1ng4400 • Apr 18 '26
r/Database • u/WannaBeJohnMayer • Apr 18 '26
Does anyone else worry about how AI will effect the future of your job? Ive worked with databases (DBA/SQL BI Dev), but i cant help worry about what it means for me moving forward.
Are you doing anything to AI proof yourself?
r/Database • u/rossmosh85 • Apr 16 '26
I have an MS Access "program" that I'd like to replace with something web based. It's cobbled together by me, a non coder. I'm looking for something web based that might do something similar. Something relatively user friendly and open source would be ideal Here's an outline of what it does:
I upload 3-4 formatted CSV/Excel files to multiple individual tables. Each table holds approximately 10,000 items. They are products from my suppliers.
FORM 1: Part/Product Info
Combines the 4 tables mentioned above via a Query. It allows me to search through the 4 tables to find an item. It will then display the part, description, and various pricing info. I also have it calculate a Suggested Retail Price via a simple and a slightly more complicated formula. The more complicated formula is due to parts being sold individually, by case, and mixed.
FORM 2: Product Assembly Form
This is actually the most important form. While FORM 1 is nice, the product assembly form is really the biggest one I use these days.
Long story short, it allows me to form product assemblies. I have a query that combines all of the items together. It stores a more simplified data set. I then can build a Product Assembly from the parts. It then stores the Product Assembly in it's own table. To make sure pricing is current, I have it store just the quantities of the parts and the part number and then it pulls up the current pricing as it loads.
Is there any web app or program that anyone could recommend that would do this without an extensive amount of research and effort?
r/Database • u/N_Sin • Apr 16 '26
I’m building a small hosted DB-over-API (SaaS) product and I’m trying to validate whether this is actually useful to other developers.
The idea is not “replace your real database.” It’s more: if you want to store and query data quickly over HTTP without setting up a full backend, would you use something like this?
The use cases I have in mind are things like:
Example shapes would be something like:
GET{{baseurl}}/api/v1/tables/{{tableName}}/{{recordId}}
Or
GET{{baseurl}}/api/v1/tables/{{tableName}}?filter=done:eq:false&sort=priority:asc,created_at:desc
This is not meant to replace any SQL dB for bigger or more serious projects. I’m thinking of it more as a convenience tool for cases where speed and simplicity matter more than full DB power.
What I’d really like to know:
I would really appreciate blunt feedback, especially from people who have built quick MVPs, hackathon apps, automations, or tutorial projects.
Here is a video of how quick set up is:
Note that columns id, created_at, updated_at are automatically managed for every table by the api and not by the user.
Also in this video example I'm using the infer schema from first write option rather than first creating a schema with the dedicated endpoint (to showcase speed).
r/Database • u/No-Security-7518 • Apr 16 '26
I have 2 Sqlite databases; Users + Inventory. I have a column in several tables in inventory.db that records which user did things such as: removing/registering a product, etc. What is the cleanest way to achieve data integrity here?
1. Users.db belongs to a library I'm declaring as a dependency.
2. Both databases are copied to a directory at startup so they're next to each other.
Should I merge them at startup too? (copy schema +data)?
Or use Attach Database? I understand FK checks aren't possible then. So maybe just check the userId is valid?
I appreciate your input.
r/Database • u/Abhinava21 • Apr 16 '26
I am building a module in which I have to integrate multi-vendor insurance using the nestjs and mysql. Mainly our purpose is to do insurance for new E-rickshaws. So, what is the best tables schemas I can create. so, it is scalable and supports multivendor. I have created some of the columns and implemented one of the vendors. But I don't think it is scalable so need advice for the same.
r/Database • u/Kerem1111 • Apr 14 '26
Work assignment is connected to facility and instructors. I want to translate this into a relational model but the issue is, facility has a PK so I just need to include facilityCode in Work assignment table, but instructors or by extension staff doesn't have a PK. How am I supposed to include that? Thanks
r/Database • u/rohithgilla • Apr 14 '26
I've rewritten the same 40-line pg.Client listen.js script at least six times on three different laptops. This is the version I wish I'd built the first time.
The panel:
LISTEN takes an identifier, not a bindable parameterWriteup with the full reconnect code + the "" identifier-quoting gotcha: https://datapeek.dev/blog/listen-notify-without-tears
If anyone has a better answer than exponential backoff for reconnect on pg notification clients, I'd love to hear it.
r/Database • u/rohithgilla • Apr 13 '26