 Ste Not Work Safe

Joined: 01 Sep 2002 Karma :    
|
|
 Easy-X Super Spammer

Joined: 08 Mar 2019 Karma :   
|
 Posted: 20:19 - 24 Oct 2025 Post subject: |
 |
|
| panrider_uk wrote: | I did use grok the other day to convert a written English query into quite a complicated (for me anyway) SQL SELECT statement |
Saves "getting a man in" to do one-off jobs I suppose but there's a dark art in efficient SQL queries.
For example, I've been tracking down inefficiencies in our code and found a query that, under certain circumstances, was taking north of 900ms to complete. I took out what looked like the complicated bits and it barely made a dent. Turns out there was a join to a self-referencing table so boom! Cartesian explosion
"That's all very interesting but I didn't understand a word of that!" What I'm saying is, there's a high chance AI will be producing functionally correct code for the muggles to use that's wildly inefficient and no one will care in the moment. When the 'leccy bill arrives though...  ____________________ Royal Enfield Continental GT 535, Husqvarna Vitpilen 401, Yamaha XSR700, Honda Rebel, Yamaha DT175, Suzuki SV650 (loan) Fazer 600, Keeway Superlight 125, 50cc turd scooter |
|