-
Type: Task
-
Resolution: Done
-
None
-
Affects Version/s: None
-
Component/s: None
When opening a statistics cursor over a lot of tables we end up with exponentially worse performance. See SERVER-16353. The problem is that all time is spent in wt_session_get_btree traversing the dhandle list due to *wt_conn_btree_apply. 1000 tables takes 8 seconds, 3000 tables takes 84 seconds. As we open N tables, it loops in __wt_session_get_btree N+sum(1-N) times or N+(N(N+1)/2). For the 1000th open we are in that loop 501500 times, for the 3000th open we are in it 4504500 times for that one open_cursor call.
- is related to
-
WT-1440 Add a URI-specific version of wt_conn_btree_apply.
- Closed
-
WT-1848 Build indexes for the base configuration strings.
- Closed
-
WT-1802 Make directory sync operation optional
- Closed
-
WT-1865 Performance degrades as more files are open.
- Closed
- related to
-
WT-1443 Cursor open optimize
- Closed