-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
import into from select #49883
Comments
Could |
not now, can you describe your usage scenario? |
We need to replicate a |
how frequent you do it? and is it whole table replicate, i.e. what's the new table used for?
|
maybe everyday, we need to update this tables, so read only snapshot may not meet our requirement. |
you can try using nightly build, with |
released in 8.0 |
Feature Request
Is your feature request related to a problem? Please describe:
“Insert into from select” statement do normal insert in one txn, the performance can not satisfy user expection(see #48637 too), so we add a similar
IMPORT into from select
which uses physical import same as lightning to speed up.Describe the feature you'd like:
IMPORT into doesn't support transaction, and the target table must be a empty one. Selected rows will be encoded into kv, sorted and write to local disk, data will be ingest into tikv directly, just as what lightning physical mode does.
during prototype test, it will speed up 2~8 times compared to INSERT INTO depends on scenario and configured concurrency.
It also support import from snapshot, but only using
as of timestamp 'xxx'
inside theselect-statement
is supported, settidb_snapshot
is not.the grammar:
tasks:
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: