Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以在不同时检索数据的情况下将光标向前移动 n 个位置(即降低 i/o 负载)。
我知道,mdb_cursor_get但它似乎在每次调用时都会从磁盘中检索数据,并结合MDB_NEXT.
mdb_cursor_get
MDB_NEXT
非常感激您的帮忙!
为 data 参数传递一个 NULL 指针,它将跳过检索。在实践中,对于所有适合叶子页面的小记录,不会有性能差异,因为这是 mmap 和零拷贝。