This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The Btree implementation does (in searchPage) only partial binary search, stopping immediatelly on a matching entry. This means it rarely finds the leftmost entry for multivalued indexes, but it needs to. This is "solved" by iterating previous entries one-by-one, while they still match the key instead of simply doing full binary search in the page (which would guarantee the leftmost entry in the page). Unfortunately this is not enough, as the sequence of entries with the same key can span several pages. Here comes in another bug which causes that pages fully populated with single key are not ordered by their prevPage/nextPage order in their parent page.
Checking in BtreePage.java; /cvs/mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreeindex/BtreePage.java,v <-- BtreePage.java new revision: 1.12; previous revision: 1.11
The number of calls to BtreePage.getPrevious and ShrinkablePage.compare was reduced heavily.