mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-17 23:24:19 +01:00
This optimization reuses an existing cursor when op_open_write() is called on the same table/index (same root_page). This is safe because the cursor position doesn't matter - op_rewind() is always called after op_open_write() to position the cursor at the beginning of the table/index before any operations are performed. This change speeds up op_open_write() by avoiding unnecessary cursor re- initialization. Closes #3815