commit | c91ffc49403818f280c382f01bbfd5cd9a9bca6b | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Mon Sep 21 15:01:41 2009 -0700 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Mon Sep 21 15:15:01 2009 -0700 |
tree | 06b4efb2182010d5b37171ccba070d3ce48f97da | |
parent | 4e3790e646bce315a1b34c9dc474eb8152c8eea2 [diff] |
Fixing OOM exception in ContactsProvider2 caused by names that look like this: "A B C D E F G H I" Since we are computing all possible permutation of names, a name with 10 words would cause us to create 7,257,600 rows in the name_lookup table. Limiting that to just 4 words, 48 rows max. Choosing the 4 longest words to improve reliability of matching. Change-Id: I83b1424cc14a291d8d8b615a356d6ec4f9e00aad