3 ms·
It seems PathQuery's entire novelty is better handling of recursive querying for query optimization, but "details are admittedly not discussed herein". So the
by sanxiyn 5y ago
It seems PathQuery's entire novelty is better handling of recursive querying for query optimization, but "details are admittedly not discussed herein".
So the paper has a sort of weird feel. It goes like this: PathQuery is a good language, because it has good semantics and it is optimizable. Some words on its good semantics. We don't discuss how it is optimizable, but trust us, it is.
- atombender 5y agoFrom what I can tell, PathQuery is also clever in how queries express the shape of the returned data, which we in GROQ call projection. For example, in GROQ you can do: *[type == "user"] { id, name, "slug": id + "-" + lower(name), "photos": photos[] { url, width, height } | order(position), "newestComment": *[_type == "comment" && author == ^.id] | order(createdAt desc)[0] { id, body } } PathQuery seems to give you similar tools in transforming data as part of your pipeline, which I think is how query languages should be like.