| 1086 | } |
| 1087 | |
| 1088 | void splitDatabase() |
| 1089 | { |
| 1090 | auto databasePath = readPathFromInput(); |
| 1091 | if (Search::Threads.dbStorage()) { |
| 1092 | std::string dbPathUTF8 = databasePath.u8string(); |
| 1093 | if (auto dbToSplit = Config::createDefaultDBStorage(dbPathUTF8)) { |
| 1094 | auto startTime = now(); |
| 1095 | size_t writeCount = ::Database::splitDatabase(*Search::Threads.dbStorage(), |
| 1096 | *dbToSplit, |
| 1097 | *board, |
| 1098 | options.rule); |
| 1099 | auto endTime = now(); |
| 1100 | MESSAGEL("Write " << writeCount << " records into the spilted database using " |
| 1101 | << (endTime - startTime) << " ms."); |
| 1102 | } |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | void mergeDatabase() |
| 1107 | { |
no test coverage detected