Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Speed - Again!
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00169396
Message ID:
00169468
Views:
26
Robert,

B-Trees and B+Trees are self balancing. Inserting a lot of records inorder though would cause lots of rebalancing to occur.

The imbalanced trees you are thinking of can happen with simple binary trees where you don't have any code to keep the tree balanced.

>I seem to remember that, for certain index types (paged B+ I think), an ordered insert is the worst-case scenario (i.e. results in the worst performance) resulting in a wildly imbalanced 'tree' so that instead of (say) four disc accesses to reach any record, you must make a much larger number.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform