Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Tika to improve FITS performance #1

Closed
escowles opened this issue Oct 19, 2016 · 0 comments
Closed

Disable Tika to improve FITS performance #1

escowles opened this issue Oct 19, 2016 · 0 comments

Comments

@escowles
Copy link
Contributor

FYI, we were trying to figure out why FITS was taking so long, and noticed that it was running Tika, which in turn runs Tesseract OCR. This is incredibly slow, and really unnecessary to do characterization. Disabling Tika reduced FITS execution time for us from 90 seconds to 20.

Here's a snippet we added to our Ansible config to comment out Tika in the FITS config file:

- name: Disable Tika
  lineinfile:
    dest='{{ fits_install }}/fits-{{ fits_version }}/xml/fits.xml'
    regexp='.*(<.*edu.harvard.hul.ois.fits.tools.tika.TikaTool.*>).*'
    backrefs=yes
    line='<!-- \1 -->'
    state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant