View Single Post
Old 04-24-2011, 09:39 AM   #130
drMerry
Addict
drMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmos
 
drMerry's Avatar
 
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
I will do this.
I have a db of 12 mb+

Did a check db. It cleaned 100 kb but this did not help in my case.
I will send a pm to my db.

Spoiler:
I was just looking at the code.
Not an expert in your code, but if it IS in the code, maybe it is on this point

class TitleAuthorAlgorithm(AlgorithmBase):
Spoiler:
'''
This algorithm is used for all the permutations requiring
some evaluation of book titles and an optional author evaluation
'''
def __init__(self, gui, book_exemptions_map, title_eval, author_eval=None):
AlgorithmBase.__init__(self, gui, exemptions_map=book_exemptions_map)
self._title_eval = title_eval
self._author_eval = author_eval

def find_candidate(self, book_id, candidates_map):
title_key = self._title_eval(self.db.title(book_id, index_is_id=True))
author_key = ''
if self._author_eval:
author_key = self._author_eval(authors_to_list(self.db, book_id))
candidates_map[title_key+author_key].add(book_id)
drMerry is offline   Reply With Quote