News for hackers. Stuff that matters.
Re:Why not use GraphQL? by cs-szazz on Saturday November 07, 2020 @10:17AM (#25015520)
They're not really related here. The premise of my question is more around the fact that with REST, which database queries you'll run are fairly static and are known by the backend based on what APIs they expose. Therefore it's easy (ish) to make sure said queries are indexed properly.

With GraphQL, I'm asking about how clients _could_ write arbitrary requests, that since the backend doesn't know about them ahead of time, can't optimize for with indexes.

Re:Why not use GraphQL? by sysashi on Saturday November 07, 2020 @03:02PM (#25018576)
That makes sense, thanks!