Open
Description
Hi. I'm considering using json:api in next API project, but I have serious performance concerns.
Let's say I want to get titles of articles in DB. Thanks for sparse fields response will be light, because it will not contain long article text and other not needed attributes.
http://localhost/api/v1/articles?fields[articles]=title
But in mysql log I can see:
Execute select * from `articles`
Why?
It should be
Execute select id, title from `articles`
Is this normal? This package does not prepare query with select's that are actually needed, instead just always fetching full rows?
I cannot find other issues about this or in docs. Can this be handled?
Currently it will affect server performance, because this query can take 10MB instead 10KB...
Regards :)