forked from scylladb/scylladb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
select_statement: Introduce internal_paging_size
Before this change, internal page_size when doing aggregate, GROUP BY or nonpaged filtering queries was hard-coded to DEFAULT_COUNT_PAGE_SIZE. This made testing hard (timeouts in debug build), because the tests had to be large to test cases when there are multiple internal pages. This change adds new internal_paging_size variable, which is configurable by set_internal_paging_size and reset_internal_paging_size free functions. This functionality is only meant for testing purposes.
- Loading branch information
1 parent
b7b5066
commit 4975d55
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (C) 2020 ScyllaDB | ||
*/ | ||
|
||
/* | ||
* This file is part of Scylla. | ||
* | ||
* Scylla is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Scylla is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Scylla. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <seastar/core/future.hh> | ||
|
||
namespace cql3 { | ||
|
||
namespace statements { | ||
|
||
future<> set_internal_paging_size(int internal_paging_size); | ||
future<> reset_internal_paging_size(); | ||
|
||
} | ||
|
||
} |