im a little confused by some of the language in the d1 material I've been reading -- are read replic
im a little confused by some of the language in the d1 material I've been reading -- are read replicas available now?
id field and that table also has various other index like on name.rows_read is always similar to the count result.
id column is a PKPRAGMA index_list('driver'); gives me all the indexes (inclduing the unique PK index):
select count(country_of_birth_country_id) from driver where country_of_birth_country_id = 'united-kingdom'country_of_birth_country_id is an indexed column and I use in the count and in the where) but it gives:174 but still 175 rows read.
FORMAT Tabseparated or similar like Analytics Engine responses do - is there a way to stream results instead of having to parse the entire JSON into memory and then iterate over the results? Internal error: failed to run backup: Failed to query D1: D1 API returned: (500 Internal Server
Error) {"error":"Error 9000: something went wrong","success":false} [code: 7500] when i run wrangler d1 backup command , any idea how to resolve this ?
Increase your limits
Request adjustments to limits that conflict with your project goals by contacting Cloudflare. To request an increase to a limit, complete the Limit Increase Request Form
and we will contact you with next steps.
wrangler.toml correctly, and a table named record is in the database.
{
"result": [
{
"results": [
{
"count(*)": 900
}
],
"success": true,
"meta": {
"served_by": "v3-prod",
"duration": 0.2931,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 12607488,
"rows_read": 900,
"rows_written": 0
}
}
],
"success": true,
"errors": [],
"messages": []
}{
"result": [
{
"results": [
{
"count(1)": 900
}
],
"success": true,
"meta": {
"served_by": "v3-prod",
"duration": 0.2308,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 12607488,
"rows_read": 900,
"rows_written": 0
}
}
],
"success": true,
"errors": [],
"messages": []
}{
"result": [
{
"results": [
{
"count(id)": 900
}
],
"success": true,
"meta": {
"served_by": "v3-prod",
"duration": 0.4641,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 12607488,
"rows_read": 900,
"rows_written": 0
}
}
],
"success": true,
"errors": [],
"messages": []
}{
"result": [
{
"results": [
{
"count(name)": 900
}
],
"success": true,
"meta": {
"served_by": "v3-prod",
"duration": 0.4976,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 12607488,
"rows_read": 900,
"rows_written": 0
}
}
],
"success": true,
"errors": [],
"messages": []
}select count(country_of_birth_country_id) from driver where country_of_birth_country_id = 'united-kingdom'{
"result": [
{
"results": [
{
"count(country_of_birth_country_id)": 174
}
],
"success": true,
"meta": {
"served_by": "v3-prod",
"duration": 0.7666,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 12607488,
"rows_read": 175,
"rows_written": 0
}
}
],
"success": true,
"errors": [],
"messages": []
}FORMAT Tabseparated Internal error: failed to run backup: Failed to query D1: D1 API returned: (500 Internal Server
Error) {"error":"Error 9000: something went wrong","success":false} [code: 7500]D1_ERROR: Internal error while starting up D1 storage caused object to be reset.`