We had this ability to download backup, but since time machine came, we can't
We had this ability to download backup, but since time machine came, we can't
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?SQLITE_LIMIT_EXPR_DEPTH set to 20 on the new backend.alpha backend - try running wrangler d1 info <dbname>EXPLAIN QUERY PLAN which should tell you the actual expression depth of your query.wrangler d1 info <dbname> without the databasedb.query.[....]) only with the ones that start differentlyExpression tree is too large (maximum depth 20)SQLITE_LIMIT_EXPR_DEPTH20alphawrangler d1 info <dbname>wrangler d1 info <dbname>EXPLAIN QUERY PLANtoSQL();db.query.[....] 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
}
}
}
});