MariaDB Why implement procedural programming inside an RDBMS (MariaDB) instead of handling all business logic in backend application code?
/r/FullStack/comments/1xrsx3f/why_implement_procedural_programming_inside_an/
10
Upvotes
View all comments
1
u/dbxp 21d ago
You're thinking in terms of modern hardware. On modern hardware with good random access you totally can use the application layer to do most things, super computers which stick the entire dataset in RAM do this. On old hardware like magnetic tape and disks however you have to optimise your data retrieval to the hardware which is what SQL effectively does. If you have to physically scroll through a tape it's monumentally quicker to be able to go directly to the data you need via an index than search through all of it.