Skip to content

Commit f285b96

Browse files
committed
remove bm resize interface
1 parent bbf0791 commit f285b96

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

src_cpp/include/py_database.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class PyDatabase {
1717

1818
explicit PyDatabase(const std::string& databasePath, uint64_t bufferPoolSize);
1919

20-
void resizeBufferManager(uint64_t newSize);
21-
2220
~PyDatabase() = default;
2321

2422
private:

src_cpp/py_database.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ void PyDatabase::initialize(py::handle& m) {
66
py::class_<PyDatabase>(m, "Database")
77
.def(py::init<const std::string&, uint64_t>(), py::arg("database_path"),
88
py::arg("buffer_pool_size") = 0)
9-
.def("resize_buffer_manager", &PyDatabase::resizeBufferManager, py::arg("new_size"))
109
.def("set_logging_level", &PyDatabase::setLoggingLevel, py::arg("logging_level"));
1110
}
1211

@@ -20,7 +19,3 @@ PyDatabase::PyDatabase(const std::string& databasePath, uint64_t bufferPoolSize)
2019
}
2120
database = std::make_unique<Database>(databasePath, systemConfig);
2221
}
23-
24-
void PyDatabase::resizeBufferManager(uint64_t newSize) {
25-
database->resizeBufferManager(newSize);
26-
}

test/test_df.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ def _test_to_df(conn):
6969
conn.set_max_threads_for_exec(1)
7070
_test_to_df(conn)
7171

72-
db.resize_buffer_manager(384 * 1024 * 1024)
73-
_test_to_df(conn)
74-
75-
db.resize_buffer_manager(512 * 1024 * 1024)
76-
conn.set_max_threads_for_exec(4)
77-
_test_to_df(conn)
78-
7972
db.set_logging_level("debug")
8073
_test_to_df(conn)
8174

test/test_exception.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ def test_exception(establish_connection):
1313
with pytest.raises(RuntimeError, match="Binder exception: Cannot find property dummy for a."):
1414
conn.execute("MATCH (a:person) RETURN a.dummy;")
1515

16-
with pytest.raises(RuntimeError,
17-
match="Buffer manager exception: Resizing to a smaller Buffer Pool Size is unsupported."):
18-
db.resize_buffer_manager(1)
19-
2016

2117
def test_db_path_exception():
2218
path = '/:* /? " < > |'

0 commit comments

Comments
 (0)