Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make D1's experimental backend the default #3668

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

rozenmd
Copy link
Contributor

@rozenmd rozenmd commented Jul 24, 2023

Fixes #3667

What this PR solves / how to test:

wrangler d1 create <dbname>
wrangler d1 info <dbname>

Associated docs issue(s)/PR(s):

  • N/A

Author has included the following, where applicable:

Reviewer is to perform the following, as applicable:

  • Checked for inclusion of relevant tests
  • Checked for inclusion of a relevant changeset
  • Checked for creation of associated docs updates
  • Manually pulled down the changes and spot-tested

@rozenmd rozenmd self-assigned this Jul 24, 2023
@rozenmd rozenmd requested review from a team as code owners July 24, 2023 15:45
@changeset-bot
Copy link

changeset-bot bot commented Jul 24, 2023

🦋 Changeset detected

Latest commit: 21deb80

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rozenmd rozenmd requested a review from elithrar July 24, 2023 15:49
@@ -59,8 +54,8 @@ export const Handler = withConfig<HandlerOptions>(
},
body: JSON.stringify({
name,
experimental: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this once D1's API defaults to the new backend.

@codecov
Copy link

codecov bot commented Jul 24, 2023

Codecov Report

Merging #3668 (21deb80) into main (e2234bb) will increase coverage by 0.06%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3668      +/-   ##
==========================================
+ Coverage   75.22%   75.29%   +0.06%     
==========================================
  Files         190      190              
  Lines       11173    11170       -3     
  Branches     2948     2945       -3     
==========================================
+ Hits         8405     8410       +5     
+ Misses       2768     2760       -8     
Impacted Files Coverage Δ
packages/wrangler/src/d1/create.tsx 34.48% <0.00%> (+3.23%) ⬆️

... and 3 files with indirect coverage changes

Copy link
Contributor

@elithrar elithrar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's go!

Comment on lines +80 to +82
Created your database using D1&apos;s new storage backend. The new
storage backend is not yet recommended for production workloads, but
backs up your data via point-in-time restore.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this message be updated?

Copy link
Contributor Author

@rozenmd rozenmd Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh we can update that once we go from alpha -> beta, D1 is still not recommended for production workloads until then.

@rozenmd rozenmd merged commit 99032c1 into main Jul 24, 2023
12 checks passed
@rozenmd rozenmd deleted the rozenmd/default-experimental-backend-on branch July 24, 2023 21:16
@github-actions github-actions bot mentioned this pull request Jul 24, 2023
lrapoport-cf pushed a commit that referenced this pull request Aug 11, 2023
* chore: make D1's experimental backend the default

* fix: actually remove the experimental backend flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature Request: Default D1 to the experimental-backend, rather than the WASM backend
3 participants