MissS
Explore posts from serversCDCloudflare Developers
•Created by MissS on 11/10/2024 in #workers-help
Queue consumer from nextjs worker
I'm trying to figure out what the project structure would look like if you're using the nextjs framework and you're deploying to workers.
Supposedly, worker nextjs should support effectively all services (creating durable objects, workflows, service bindings).
But where would all of those worker specific files be located? They wouldn't be in the app/api/[route] for nextjs backend routes. Do people just make a seperate folder at the root for all "worker functions"? Any examples people can point to?
2 replies
Filtering searches, row size limitations
I'm currently using filters to create an exact text search but I noticed that there are row size limitations and large rows (>10KB) are being silently excluded.
I'm attempting to filter documents, which can be pretty big (hundreds of KB), and I'm wondering if Xata is a good use case for this or not.
I think we only care about exact keyword search sorted by date and not BM25 scoring.
2 replies
Return types of search
I'm calling
xata.search.all
on my backend, and I'm trying to figure out what types that I should use to represent the record result. I'm currently searching two tables.
Doing RouterOutput['search']['records'][0]
gives me one of the two possible types I think? RouterOutput is the return type of the function using TRPC.2 replies