-
Notifications
You must be signed in to change notification settings - Fork 578
feat: multithreaded bulk import #1077
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
Merged
sattvikc
merged 47 commits into
feat/bulk-import-base
from
feat/multithreaded-bulk-import
Dec 19, 2024
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
0ea0211
feat: Add BulkImport APIs and cron
anku255 f86211a
chore: update pull request template
anku255 05dc4a1
fix: Use the correct tenant config to create the proxy storage
anku255 5b4658a
fix: PR changes
anku255 d721cd5
fix: PR changes
anku255 769cbb6
fix: PR changes
anku255 f443a8c
fix: PR changes
anku255 73b75a8
fix: PR changes
anku255 6d59616
fix: PR changes
anku255 b6c63f4
fix: Update version
anku255 173e7fc
fix: PR changes
anku255 4f6ab13
fix: PR changes
anku255 7f8ce62
Merge branch 'feat/bulk-import-base' into feat/bulk-import-1
anku255 fcdfb54
fix: Rename DeleteBulkImportUser API path
anku255 ddfaa1c
fix: disable bulk import for in-memory db
anku255 c7ae1e4
fix: a bug with createTotpDevices
anku255 d24bebf
fix: PR changes
anku255 09c1b85
feat: Add an api to import user in sync
anku255 119ca1d
feat: Add an api to get count of bulk import users
anku255 79a1e67
fix: PR changes
anku255 77cb57c
fix: Add error codes and plainTextPassword import
anku255 78979f4
fix: PR changes
anku255 0d70735
feat: multithreaded bulk import
tamassoltesz b78541e
fix: changelog update
tamassoltesz 0c0dea8
fix: add new test
tamassoltesz 67c42e9
fix: fixing unreliable mutithreaded bulk import with mysql
tamassoltesz 72706f9
chore: merging master to feature branch
tamassoltesz 807f617
fix: review fixes
tamassoltesz f7cc349
fix: fixing failing tests
tamassoltesz 1ec5dde
feat: bulkimport flow tests
tamassoltesz 2c14844
feat: bulk import cron starter api
tamassoltesz d0d13f0
fix: tweaking params for faster import
tamassoltesz 1d076b5
fix: tests
tamassoltesz 8070d45
checkpoint
tamassoltesz d2ec5cb
fix: remove vacuuming
tamassoltesz 8ff6eea
chore: merging master to feature branch
tamassoltesz 16eda70
fix: minor tweaks
tamassoltesz 7aaf422
feat: bulk inserting the bulk migration data
tamassoltesz d33eb5e
fix: fast as a lightning
tamassoltesz a41f951
fix: restoring lost method
tamassoltesz 96f6e0a
fix: reworked error handling to comform previous approach with messages
tamassoltesz 21e91fc
fix: fixing tests
tamassoltesz 4fe694a
fix: fixing failing tests, changing version
tamassoltesz 535d00b
chore: update changelog
tamassoltesz 22b7726
fix: fixing issues and failing tests
tamassoltesz d6402ab
fix: review changes
tamassoltesz dc41f30
fix: review fixes, reworking cron start/stop
tamassoltesz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
31 changes: 31 additions & 0 deletions
31
src/main/java/io/supertokens/StorageAndUserIdMappingForBulkImport.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved. | ||
* | ||
* This software is licensed under the Apache License, Version 2.0 (the | ||
* "License") as published by the Apache Software Foundation. | ||
* | ||
* You may not use this file except in compliance with the License. You may | ||
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package io.supertokens; | ||
|
||
import io.supertokens.pluginInterface.Storage; | ||
import io.supertokens.pluginInterface.useridmapping.UserIdMapping; | ||
|
||
public class StorageAndUserIdMappingForBulkImport extends StorageAndUserIdMapping { | ||
|
||
public String userIdInQuestion; | ||
|
||
public StorageAndUserIdMappingForBulkImport(Storage storage, | ||
UserIdMapping userIdMapping, String userIdInQuestion) { | ||
super(storage, userIdMapping); | ||
this.userIdInQuestion = userIdInQuestion; | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.