1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-10-06 22:05:22 +02:00

Allow database backend to optimize group-by-XZ operation

This commit is contained in:
sfan5
2025-02-19 22:57:58 +01:00
parent 7685e548f0
commit cd36f16775
11 changed files with 89 additions and 70 deletions

View File

@@ -47,7 +47,7 @@ protected:
class DBSQLite3 : public DB, SQLite3Base {
public:
DBSQLite3(const std::string &mapdir);
std::vector<BlockPos> getBlockPos(BlockPos min, BlockPos max) override;
std::vector<BlockPos> getBlockPosXZ(BlockPos min, BlockPos max) override;
void getBlocksOnXZ(BlockList &blocks, int16_t x, int16_t z,
int16_t min_y, int16_t max_y) override;
void getBlocksByPos(BlockList &blocks,