Created
March 30, 2020 23:04
-
-
Save brianleroux/5a16fd9dc4c8aff33ae922c0b3b7f466 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sign up save the data by creating a dynamic index.. | |
await begin.set([ | |
{table: `users`, key: userID, email, name, etc}, | |
{table: `user-${ email }`, key: userID, email, name, etc} | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this has the tradeoff that you maintain the data in two places (but hey batch writes are free!)