View Single Post
Old 01-11-2011, 04:29 AM   #21
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by garcle View Post
What about sorting performance? presumably there would be some penalty for trying to sort on a field in a foreign table (custom_column_x)?
Sorting and searching are done on the flattened in-memory cache, so there would be no difference in performance.

There would be a difference in loading the cache. Using a column in the books table would cost nothing. Using my 20,000 book test library, after adding a new custom text column, loading the cache costs an extra 0.1 second (+/- some; it is very hard to get accurate measurements of such small deltas). I don't think that an extra 5 microseconds per book is a deal-killer.
chaley is offline   Reply With Quote