Can I add data to a d1 database from workers and a python script?
Can I add data to a d1 database from workers and a python script?
backup imports don't count as writesD1's beta backend doesn't have backup imports - you can write to the DB, and you're billed as a write.
Expression tree is too large (maximum depth 20) for some queries. Those are not particularly complex, it's just like get x -> join this field -> join this field, so I'd guess this would be the depth 2 or 3?Expression tree is too large (maximum depth 20) const teamArticles = await db.query.articles.findMany({
where: ownerOrInTeam(articles.userId, authUser), // this is one equality check
with: {
pineconeReferences: true,
outlineDrafts: { // if I do outlineDrafts: true, I am not over 20 anymore
with: { // this seems to be the edge at which it goes over 20 seemingly
draftPieces: true
}
}
}
});