Dbugger
Explore posts from serversCDCloudflare Developers
•Created by Dbugger on 2/24/2025 in #general-help
CloudFlare will show a cached version of my site for crawlerbots, no matter if I purge the cache
If I visit my site with the user agent "Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)" for the ahrefs crawler, I keep getting an outdated version of my site, even though if I visit it with the browsers default user agent, work without a problem.
I have clicked "Purge everything" 20 times already, and no matter what, I cannot seem to get the right result for the crawler user agent. Why could that be???
4 replies
PPrisma
•Created by Dbugger on 6/10/2024 in #help-and-questions
Getting total count of records with one Query
Is it possible to get a
_count
of all records when doing a .findMany()
query, without having to do a second .count()
query?
I know it works for relationships, but I dont know how it works for simple queries.2 replies
PPrisma
•Created by Dbugger on 6/7/2024 in #help-and-questions
I can't disconnect a many-to-many relationship
Disconnecting the previous contact relationships is giving me a lot of headache. What's wrong with this statement?
3 replies
PPrisma
•Created by Dbugger on 5/11/2024 in #help-and-questions
Refactoring schema
I have the following schema:
Both the logos and Attachment are the same thing: files. So I thought that maybe I should refactor it, into the same table, but then apparently I am forced to do this
Which seems like a waste, because now the model File will need to update, everytime there is a new model that references the file. It does not scale well.
What would be the best way to optimize my Schema?
4 replies