frabcus / judgmental

UK case law
http://judgmental.org.uk/
16 stars 4 forks source link

Speedup: best_filename #16

Closed pinballslouch closed 13 years ago

pinballslouch commented 13 years ago

In convert.py, we (I) rather dumbly pass the court name to best_filename and then use Levenshtein to find the abbreviated name. This is done for every judgment.

We should put the abbreviated names into the courts table instead.

chris321 commented 13 years ago

best_filename is now in analyse.py and we store the abbreviated names in the courts table and only calculate the Levenshtein distance when we first store the court record.