Unsmart | Tech debt
05/27/2023, 7:32 PMnora
05/27/2023, 7:33 PMsuccess
always be assumed to be true then?elithrar
05/27/2023, 7:34 PMconnor
05/28/2023, 2:37 AMhttps://cdn.discordapp.com/attachments/992060581832032316/1112207881962532883/image.png▾
connor
05/28/2023, 2:38 AMconnor
05/28/2023, 2:41 AMconnor
05/28/2023, 11:35 AMconnor
05/28/2023, 11:35 AMPhong
05/28/2023, 2:07 PMPhong
05/28/2023, 2:19 PMelithrar
05/28/2023, 4:33 PMlokiwind
05/28/2023, 11:12 PMhttps://cdn.discordapp.com/attachments/992060581832032316/1112518702693355550/Screenshot_11.png▾
lokiwind
05/28/2023, 11:13 PMhttps://cdn.discordapp.com/attachments/992060581832032316/1112519057812500560/Screenshot_12.png▾
geelen
05/29/2023, 12:41 AMgeelen
05/29/2023, 12:44 AMgeelen
05/29/2023, 12:44 AMbiscuit
05/29/2023, 2:39 AMbiscuit
05/29/2023, 2:43 AMDevelopers with existing databases can import data into a new database backed by the storage engine by following the steps to export their database and then import it in our docs.
Do I have to do this for my 2 month old D1 database or should I export and import again, I saw a difference of over 2x currently so i assumed it automatically updated to the new storage systemmomiller121
11/28/2023, 6:22 PMmilanmk18
12/06/2023, 3:39 AMawait stmt.first([column])
command.
Error: D1_ERROR: Cannot resolve D1 due to transient issue on remote node.
at D1Database._sendOrThrow (cloudflare-internal:d1-api:66:19)
at async D1PreparedStatement.first (cloudflare-internal:d1-api:153:35)
at async Object.fetch (worker.js:86:26)
G4G4N
12/25/2023, 4:39 AMCole Xemi
12/31/2023, 8:03 PMCole Xemi
12/31/2023, 10:08 PMreturning
to your query to return. first
just returns the first item of the resultvaiton13
01/02/2024, 9:35 PMTigersWay
01/04/2024, 9:35 PMAaronO
01/08/2024, 4:48 PMjson
[
{
"id": "73aa3745312b9d77a2ebc620c256afd511c6d77678c01cc5e4a7195c9577510d",
"duration": 0.1758,
"latency": 49,
"latency2": 70,
"code": "wnam",
"name": "Western North America"
},
{
"id": "e752bbc411591eb378db5f361b1b1619d873117f53f198332aa5248314f627f4",
"duration": 0.1888,
"latency": 153,
"latency2": 294,
"code": "enam",
"name": "Eastern North America"
},
{
"id": "753dc6fe394b9cb0308ace1ade131b43a1692a55d6834e8701a01909eb9fea9b",
"duration": 0.1416,
"latency": 131,
"latency2": 198,
"code": "sam",
"name": "South America"
},
{
"id": "d2e25bd9658e42df959504fac5dffd8d83fb8e2366dc6ac06ec2d84831b4dc37",
"duration": 0.0735,
"latency": 325,
"latency2": 480,
"code": "weur",
"name": "Western Europe"
},
{
"id": "e31627d610192131b70d0045008206b30c9cf01ca84fe2c9b1c27cf96d5d8c8e",
"duration": 0.1483,
"latency": 319,
"latency2": 486,
"code": "eeur",
"name": "Eastern Europe"
},
{
"id": "5f64af3a6faf1dd70be9ac26d6cd41bf89d0c0a1a6d6207b0119514492b4a7f4",
"duration": 0.1706,
"latency": 256,
"latency2": 387,
"code": "apac",
"name": "Asia-Pacific"
},
{
"id": "10a82824d9f8cb7278cf5f4abe3638b448b9d728d7de77bbbdfb72d0407a4494",
"duration": 0.218,
"latency": 259,
"latency2": 389,
"code": "oc",
"name": "Oceania"
},
{
"id": "6f2b7986d114370dcd2b42c89733e18fe53007d9f7a38f132bd1e85a82a01394",
"duration": 0.1178,
"latency": 322,
"latency2": 486,
"code": "afr",
"name": "Africa"
},
{
"id": "2e93bd640ad96a643cfa7160f9f4d6f256c8bba512bf0b344ef0cbe88e791d12",
"duration": 0.1582,
"latency": 303,
"latency2": 455,
"code": "me",
"name": "Middle East"
}
]
G4G4N
01/10/2024, 11:51 PMSELECT user.*, plan.planTier
FROM user
LEFT JOIN plan ON user._id = plan.userId
WHERE user._id IN (${placeholders})
)
.bind(...activeUserIds)
.all()