Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
9 joins in a school project
I challenged myself to implement most of the (basic) webapp project in that one query
I succeeded but my grades did not lol -
Awlex177453y@theabbie Fetch all devices that should receive a push notification for a resource and perform additional permission checks
-
C0D4669023y12 -> to return a product and all its associated data.
13, if you include the fact those 12 are in a sub select for filtering purposes. -
Earu5633y11, mostly due to the fact that the db is about the organization of the company which is divided in a bunch loads of entities which all have their own tables.
-
hjk10156963yMy max is way higher (somewhere around 30 to 40). Needed to pivot the data for a report so lots of joins on itself. I've gone I got the max of mysql (61) but that was generated by third party code so does not count.
-
hjk10156963yAlso if you work with Drupal you get these things at ease (fieldable entities, each field is in its own table)
-
Around 15 for a query that actually runs in production. Initially it was 15, but i had to make some hierarhical structure for some users so add a few more to the mix.
Yeah the "feature" was a piece of shit, but the project was quite clean and well tought out all in all.
I still love the fact that that data could have been saved a lot more efficient and clean in a graph database..
Related Rants
Today I wrote a SQL query with 7 joins. What's your record?
question
sql
joined the dark side