r/Database • u/AhSaElDin • Feb 14 '12
r/Database • u/AsterionDB • Jul 22 '25
We Need A Database Centric Paradigm
Hello, I have 44 YoE as a SWE. Here's a post I made on LumpedIn, adapted for Reddit... I hope it fosters some thought and conversation.
The latest Microsoft SharePoint vulnerability shows the woefully inadequate state of modern computer science. Let me explain.
"We build applications in an environment designed for running programs. An application is not the same thing as a program - from the operating system's perspective"
When the operating system and it's sidekick the file system were invented they were designed to run one program at a time. That program owned it's data. There was no effective way to work with or look at the data unless you ran the program or wrote a compatible program that understood the data format and knew where to find the data. Applications, back then, were much simpler and somewhat self-contained.
Databases, as we know of them today, did not exist. Furthermore, we did not use the file system to store 'user' data (e.g. your cat photos, etc).
But, databases and the file system unlocked the ability to write complex applications by allowing data to be easily shared among (semi) related programs. The problem is, we're writing applications in an environment designed for programs that own their data. And, in that environment, we are storing user data and business logic that can be easily read and manipulated.
A new paradigm is needed where all user-data and business logic is lifted into a higher level controlled by a relational database. Specifically, a RDBMS that can execute logic (i.e. stored procedures etc.) and is capable of managing BLOBs/CLOBs. This architecture is inherently in-line with what the file-system/operating-system was designed for, running a program that owns it's data (i.e. the database).
The net result is the ability to remove user data and business logic from direct manipulation and access by operating system level tools and techniques. An example of this is removing the ability to use POSIX file system semantics to discover user assets (e.g. do a directory listing). This allows us to use architecture to achieve security goals that can not be realized given how we are writing applications today.

r/Database • u/RoundContribution344 • Sep 30 '25
Which database is best for creating saas apps
Which database is best for creating saas apps
r/Database • u/stardude107 • Sep 17 '17
Which SQL vendor you think is better, Oracle or MySQL? Why?
I'd like your opinions my fellow database redditors.
r/Database • u/WannaBeJohnMayer • Apr 18 '26
Is anyone else scared of AI?
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/Island-Potential • Nov 02 '25
It's everywhere
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/Mrcool654321 • May 02 '24
How do you run a database without doxxing yourself
I own https://scabidi.com, and I want to own servers instead of rent them from Hostinger, Is there a way to get servers to show someone else's address, this is just a database I would continue to host the website from Hostinger, but it would connect to my database to get things like users.
r/Database • u/[deleted] • Jan 26 '18
Can someone explain to me what a Primary Key is for a Database as simply as possible with an example
r/Database • u/No-Security-7518 • Jan 22 '26
I just found out there are 124 keywords in Sqlite. I wonder if anyone here knows all of them. Would be cool.
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/RandomRedditor672943 • Sep 05 '22
Why do so many US job adverts indicate a reliance on MS SQL Server when Postgres is more advanced, and free?
r/Database • u/rabbitLINQ • Feb 12 '15
Power Bi is the cloud service for Microsoft’s BI self-service strategy. Many of you might be familiar with it’s current state but a new version of the service has been put in preview for 2015.
r/Database • u/Aamir800 • Jan 06 '14
Sql Age: TSQL INTERVIEW QUESTIONS
r/Database • u/Equal_Independent_36 • Oct 06 '25
[Help] Need self-hosted database that can handle 500 writes/sec (Mongo & Elastic too slow)
Hey everyone, I have an application that performs around 500 write requests per second. I’ve tried both MongoDB and Elasticsearch, but I’m only getting about 200 write requests per minute in performance. Could anyone suggest an alternative database that can handle this kind of write load while still offering good read and viewing capabilities similar to Mongo? Each document is roughly 10 KB in size. I’m specifically looking for self-hosted solutions.
r/Database • u/MiranSamorai • Jun 20 '24
Excel oriented database
Hello guys I work at a store , and they use a database where i went into the folders of the database and saw that the database is made with excel but when you click a button it takes you to the selected excel for each category and i was wondering how is that possible, which Programme is used
r/Database • u/HirotoAlex • Nov 17 '25
Stupid question, is this right?
Okay, first of all, i'm taking database for my first semester in university for computer science and i kind of understand this chapter and how to draw the erd but the question genuinely making me second guess myself whether i am right or now.
You might be asking, "why don't you ask your professor for confirmation? " i did... And it just make me more confuse afterwards.
I ask my friends... They haven't done it yet soo
Here the erd i made
And here are the questions
High Press, a universily center, manage the publication and sales of books authored by High staff. Each book has an ISBN, title, type, publication date, price and quantity.A book can have one or more author, and each author can write multiple books. Authors are identified by their ID, name, department or faculty, and status (main author or co-author) Authors may also place orders for books they have written, but they can only order one book title per order Each author order is identified by an order number and includes the order date, status, book ordered and the quantity of books Customers,on the other hand, may order one or more books, with the same or different title. Each customer order is identified by an order number, containing the date ordered, order status, a list of books ordered and the quantity of each book. For each customer, relevant detail such as ID, name, address, and telephone number are recorded. Payments are generated for each order, with additional charges for Postage for customer order , while authors receive a 30% discount on books they have authored, Each payment has attributes such as payment ID, payment date, payment type, total amount, and status, The ERD should capture these relationships and constraints to manage both book publication and sales processes efficiently
Thank you for any help, and sorry if i did something wrong with the image
r/Database • u/coderarun • Mar 17 '26
Writing a Columnar Database in C++?
If so, you've probably looked into DuckDB. There is now a source code mirror of DuckDB that I've called Pygmy Goose (its the smallest species of Duck!).
* Retains only the core duckdb code and unittests. No extensions, data sets etc.
* Runs CI in 5 minutes on Linux, Mac and Windows (ccached runs)
* Agents branch tested to work better with coding agents.
Please check it out and share feedback. Looking for collaborators. May be of interest if you want to reuse DuckDB code in your own database, but want to share the maintenance burden.
r/Database • u/_blueb • Jun 11 '25
How can i create best database schema for my requirements
Hello Everyone. I wanted to design a database schema design for my personal projects and also i wanted for my future as well. Is there any guide. So that i can follow that. any best practice.
Thanks
r/Database • u/skwyckl • May 31 '25
Portable graph database to ship with application?
I am having a very specific issue: I am building a desktop application, until now I have been using SQLite, but as of recently, I have so many relationships, that I think a graph database would be much better as a persistence layer. However, most graph databases are server-based. I have only found a handful that can be considered portable:
Kuzu: https://github.com/kuzudb/kuzu (is the name similarity a coincidence?)
SimpleGraph (SQLite Extension): https://github.com/dpapathanasiou/simple-graph
Of course, XML counts somehow, too, as a graph database, but read-write operations are expensive, especially from file.
Any suggestions on how to proceed? Are the techs above good picks? Should I consider something else?