chad3814
Explore posts from serversPPrisma
•Created by chad3814 on 10/23/2024 in #help-and-questions
Introspection in the client extensions
Say I have a client exension:
The
model
here is just a string. How can I figure out if there's a unique constraint in the args, and what it is? Anyway to determine if the model has an @id
field? I want to make something smarter than just a generic query cache.4 replies
CDCloudflare Developers
•Created by chad3814 on 9/13/2024 in #general-help
crawling sitemaps rate limiting
Hi, I'm writing a crawler bot, and I'm getting the sitemaps for some sites that are behind cloudflare. Currently I'm limiting to 5 requests per second maximum, but sometimes I get a 403 from cloudflare, and looking at the html returned it would redirect with an extra
__cf_chl_rt_tk
query parameter set. Seems like it's a rate limiting mechanism. Is there a set rate I should use, or a way to determine what rate I should use?5 replies