Skip to content

Commit

Permalink
dbcopy: use 100000 and flush cout
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Jan 31, 2020
1 parent 9597979 commit e892583
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/dird/dbconvert/database_import.cc
Expand Up @@ -60,7 +60,8 @@ void DatabaseImport::ExportTo(DatabaseExport& exporter)

for (const auto& t : table_descriptions_->tables) {
auto start = std::chrono::steady_clock::now();
std::cout << "Converting table: " << t.table_name << ", duration: ";
std::cout << "Converting table: " << t.table_name
<< ", duration: " << std::flush;
std::string query{"SELECT "};
for (const auto& col : t.column_descriptions) {
query += col->column_name;
Expand All @@ -69,7 +70,7 @@ void DatabaseImport::ExportTo(DatabaseExport& exporter)
query.erase(query.cend() - 2);
query += "FROM ";
query += t.table_name;
query += " LIMIT 1000";
query += " LIMIT 100000";

RowData row_data;
row_data.table_name = t.table_name;
Expand Down

0 comments on commit e892583

Please sign in to comment.