The interesting ideas in Datasette
simonwillison.net
simonwillison.net
https://simonwillison.net/2018/Oct/4/datasette-ideas/#Keyset...
https://use-the-index-luke.com/sql/partial-results/fetch-nex...
I've implemented this myself (poorly) for mutable data as I slowly began to lose my mind. For example a feed of users' posts (ordered uniquely for each user based on their personal preference) that can be individually created and deleted, and you don't have enough memory to cache all of the query results to be returned to each user immutably. As far as I can tell, this is an open problem.
http://cra.mr/2011/03/08/building-cursors-for-the-disqus-api
There's also an implementation in Sentry, that is probably too complex, awful code, and hard to read, but is open source if anyones curious:
https://github.com/getsentry/sentry/blob/master/src/sentry/u...
This has been very, very nice for throwing up a quick explorer for some research data I use regularly.
You mention things about sqlite's JSON support; do you have plans for exposing more of this?
I also have a feature where you can tell the JSON API "I know this field is JSON - don't give it to me as an escaped string, give me the JSON raw". Here's an example: https://latest.datasette.io/fixtures-dd88475/select.json?_sh...