Should be complete now. Please let me know if you still get that validation error.
Should be complete now. Please let me know if you still get that validation error.
select * from sqlite_master; and see if the output contains the table you expect to be there.
--persist-to option? https://developers.cloudflare.com/d1/wrangler-commands/ and https://developers.cloudflare.com/workers/wrangler/commands/#d1:~:text=Minify%20the%20Worker.-,%2D%2Dpersist%2Dto,-stringwrangler d1 execute in my workers. Or maybe is it a config when I bind the like ENV.DB.execute?wrangler devbatch() but I cannot find any other resources than in this blog post.
This is from the HKG PoP and with a D1 instance in APACAPAC is a huge region and you could be 100-200ms away from your database unfortunately. Having said that anything more than a few hundreds of ms even in those cases is a bigger unexpected issue, either with the responses getting back to your worker or something else.
select * from sqlite_master;...
[[d1_databases]]
binding = "FIRESTORM_DB"
database_name = "firestorm-db"
database_id = "c020574a-5623-407b-be0c-cd192bab9545"
migrations_dir = "../d1/migrations"--persist-towrangler d1 execute const findActivityStartTime = performance.now();
const activity = await prisma.activity.findFirst({
where: {
id: activityId,
goalId: goalId,
goal: {
userId: user.id,
},
},
});
const findActivityEndTime = performance.now();
console.log(
`Time to find activity: ${findActivityEndTime - findActivityStartTime}ms`
);batch()const id = this.env.MY_DURABLE_OBJECT.idFromName(teamId);
const stub = this.env.MY_DURABLE_OBJECT.get(id);