I'm working on d1 to build something out with a friend, I added him to my account (e.g kj@emailprovider.com) and gave him (e.g kfriend@emailprovider.net) workers permission for all domains. At first he could not see the databases when logged in, whenever he clicked on d1 it kept sending him to the overview page. After I sent him a link to the page I was using (eg https://dash.cloudflare.com/{D1-ID-HERE}/workers/d1) he was able to see the database, but the account name on the top left changed from his email to mine. We were able to collaborate just fine. There was probably a step we missed where he needed to change over from his default account to mine ,but I thought I should ping just in case it was unexpected behavior. Thanks for all the great work on d1. I'm loving it so far .
but not all of it right? I guess that you are batching a lot of DELETE commands, not delete by ID. According to the document, I think cf implements batch using a loop, trying to find a gap between other queries to run commands. If the batch does not success after a period of time, it will flag the batch as overloaded and returns the failed command index (as shown on the batch array). Since queries are run sequentially and commit on each success one then that's why your batch failed but some of them are executed.
it reminds me of one time I tried to execute 10 or 20 query like that on a mysql table which has 300m rows. The production was down shortly after, the db was not responding . I was using aurora serverless v1 so there is no way to reboot the DB. It hangs for 8 or 9 hrs and costs me about 200 - 300$
To be fair, I was told to go ham on it and it does sustain 1000 write queries per minute, along with 100 read queries per minute. Optimized queries, most are single or a few rows each, but still.
where is .insert from? I don't see it in the docs. what is blobs? is there a way to map classes to tables without using prepare and run or are you using an orm on top of d1?
since workers only lives for 30 seconds per fetch invocation, i guess he want it failed rather than worker eviction to raise a reasonable error to the user, or to do something else