Quote:
Originally Posted by drMerry
Another function that should be usefull:
Author/Title - swap
By binary comparison I found a duplicate books I would not have found with other functions:
Book 1:
Anna Karenina by Leo Tolstoy
Book 2:
Leo Tolstoy by Anna Karenina
Also found 2 other books with this problem (both where books with a name as title so it was not that obvious when you take a quick look)
|
Putting aside the function's desirability (I wouldn't use it), computationally the only way I see to do this is to create a temporary 'book' (a candidate in the plugin's terminology) for each book in the search set by swapping the authors & title, immediately doubling the size of the candidates set. If multiple authors are taken into account, then the size is increased even more. Assuming no multiple authors, then a 40,000-book library becomes 80,000. That number is getting scary-large, perhaps crossing the performance threshold (the tables go to VM and start page thrashing) or even faulting because the plugin runs out of memory.
Edit: it is worse than I thought. The author names must be added in both FN LN and LN, FN order, because we don't know the order of any 'names' in the title. That means 3 entries per book, not two.
Yes, one can say "don't do that", but we have hard experience that people will do 'unreasonable' things because they seem perfectly reasonable to them. Then kiwidude must deal with an unhappy user. Up to him if he wants to take on that burden.