News for hackers. Stuff that matters.
Re:SPAs Were a Mistake by tored on Thursday March 03, 2022 @05:33AM (#30539343)
You can also use a VIEW.

How does GraphQL make sure to respect table indexes? If not you get a super slow query.

Re:SPAs Were a Mistake by qw on Thursday March 03, 2022 @05:56AM (#30539473)
You can still get performance issues with a view if you "select *" on a large amount of data, or join with other views. By exposing the SQL to a web page, you also open up for DDoS attacks more easily, as you can write complex SQL queries

You can get the same problems with GraphQL or stored procedures too of course, if the queries are not optimized correctly

Re:SPAs Were a Mistake by MonaroVXR on Thursday March 03, 2022 @10:38PM (#30550411)
So what's the solution to this?
Re:SPAs Were a Mistake by int_19h on Friday March 04, 2022 @12:41AM (#30551093)
Performance quotas.
Re:SPAs Were a Mistake by tekknik on Thursday March 03, 2022 @07:22PM (#30548914)
Because a human is writing the resolvers pulling the data from the database. Set whatever index you want to use.