June 2019
Beginner to intermediate
770 pages
19h 24m
English
A search can be inefficient if we examine all of the objects in a database, and apply a filter. We'd prefer to work with a more focused subset of items. We'll look at how we can create more useful indices in the Creating indexes to improve efficiency section. The fallback plan of brute-force scanning all the objects, however, always works. For searches that occur rarely, the computation required to create a more efficient index may not be worth the time saved.
When a child class has an independent-style key, we can scan a shelf for all instances of some Child class using an iterator over the keys. Here's a generator ...
Read now
Unlock full access