Bulk import switches for pk;import

We're now using binary import for switches and switch_members when importing a system profile, rather than importing them one switch at a time.

This adds a pass-through method to the PerformanceTrackingConnection that can be used for other bulk import applications.
This commit is contained in:
Noko
2019-10-20 14:38:43 -05:00
parent 3d21adeec9
commit 406f005b4f
3 changed files with 80 additions and 3 deletions

View File

@@ -488,6 +488,11 @@ namespace PluralKit
_impl.Open();
}
public NpgsqlBinaryImporter BeginBinaryImport(string copyFromCommand)
{
return _impl.BeginBinaryImport(copyFromCommand);
}
public string ConnectionString
{
get => _impl.ConnectionString;