I'm still seeing the same, most connections hang and end up in CONNECT_TIMEOUT
I'm still seeing the same, most connections hang and end up in CONNECT_TIMEOUT





workerd :lul:wrangler hyperdrive create -- something like "To disable and opt out of caching add --caching-disabled. You can also specify --max-age in seconds before query results are evicted (default 60 seconds)". Maybe the word "caching" would be linked to the cache docs.--help has great documentation btw. I should have read through that before issuing the command // Middleware to inject the database client into the context
export const database = async (c: Context, next: Next) => {
if (c.env.ENV === "test") {
const database = new MockDatabaseClient();
c.set("database", database);
await next();
} else {
const sql = postgres(c.env.HYPERDRIVE.connectionString);
const database = new KVDatabaseClient(sql);
c.set("database", database); // set the database client to the context
await next();
// clean up the client ensuring we don't kill the worker before that is completed
c.executionCtx.waitUntil(sql.end());
}
};wrangler hyperdrive create--caching-disabled--max-age--help