One time I pointed out that, rather than reordering the tables to make loading work with foreign key constraints, we could pause trigger execution, load all the data, and then resume the triggers. pg_dump can even do it for you if you pick the options right (might be default), in addition to natively ordering the data correctly, but if you're messing around with large SQL files anyway, it's helpful..
*put perform = outperform
He wasn't the first to observe the general principle, it's at least as old as the Bible[0].
I just enter my vague question into this AI chat thingy and I try the first thing that it tells me on my production server.
Has worked fine for me so far. What could possibly go wrong?
"Let me just install this 2MB js dependency real quick. I don't know anything about its author nor if its maintained at all, but it will prevent me from writing 10 lines of vainilla js."
ChatGPT is a vast improvement from this.
Here we have an agent integrated into langchain that executes the command directly on the server. If there are any errors it uses ai to debug and fix them too.
!/s see https://python.langchain.com/en/latest/modules/agents/toolki...
CREATE EXTENSION pggpt;
and you're done. The AI watches your db and adjusts the params on the fly as needed. We're joking, but I give it less than 12 months before there'll be something like this.
Project based learning is best for sql and excel formulas. Start at the start and it builds up quickly.
Don’t worry it’s way less work than trying to make a nosql database into a sql database.
I’ve probably worked with hundreds of people now who use a database daily either in code or just to explore data and can count on two hands (optimistically…) the number of folks who actually read the fine manual in any other way than googling something specific. Pro tip: read it so you know what to google for!