jeremy
Explore posts from serversPPrisma
•Created by jeremy on 6/1/2024 in #help-and-questions
Raw SQL generated for cursor using libsql issue
To start with I am using:
I am handling a cursor-based pagination. My code looks like this:
When fetching the first batch of items, with
after
argument being null
, I'm successfully getting the data.
The raw generated SQL looks like this:
However, when trying to get the next batch based on the cursor, I'm getting an error from libSQL RESPONSE_TOO_LARGE: Response is too large
.
When looking at the generated SQL it looks like this:
I believe the -1
is a bug and the proper limit is not being applied correctly here. Does anyone have a pointer on how I can debug this locally and maybe local patch it?4 replies
CDCloudflare Developers
•Created by jeremy on 4/24/2024 in #workers-help
Subrequests metrics
Hi there,
I wrote a workers to cache request from my graphql endpoint. I mostly following the example here https://blog.cloudflare.com/introducing-the-workers-cache-api-giving-you-control-over-how-your-content-is-cached
As a result I correctly get cached request from the Cloudflare Cache API with status "cf-cache-status: HIT".
However, if I go to the analytics dashboard to "Workers (per zone) > Subrequests > Cached requests" it says 0. "Total requests" is correctly populated with the request I made.
I'm looking at the documentation here https://developers.cloudflare.com/workers/observability/metrics-and-analytics/#subrequests and the way I'm doing it should be correct.
Any pointers on why it's not showing any requests cached?
12 replies