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

Performance issue #40

Closed
borisbaldassari opened this issue Dec 26, 2017 · 5 comments
Closed

Performance issue #40

borisbaldassari opened this issue Dec 26, 2017 · 5 comments
Labels

Comments

@borisbaldassari
Copy link

Hi good people,

I've setup a sherlock instance on a quite large codebase at [1]. The indexes took several days to build, it worked well, but now the interface is so slow that it can hardly be used [2].

Is it considered normal, or can I do anything to improve the speed of the UI? Is it just the host's perfs (vm with 8 procs and 16GB of RAM)?

I could not find anything about perfs on the wiki, and cannot find a mailing list to ask questions on. Hence this information request. Thanks in advance, have a wonderful end of year! :-)

[1] http://ci3.castalia.camp:7777/
[2] http://ci3.castalia.camp:7777/search?q=IFrame

--
boris

@borisbaldassari borisbaldassari changed the title Performance Performance issue Dec 26, 2017
@cbess
Copy link
Owner

cbess commented Dec 26, 2017

Are you using the Xapian backend?

There is a small mention about performance considerations in the README under the Basic Setup and End-to-end Interface.

Basically review the two available backends.

Let me know if that helps.

@cbess cbess added the support label Dec 26, 2017
@borisbaldassari
Copy link
Author

Hi Christopher,

Thanks for the quick reply! I'm using the default backend indeed.
I'll give xapian a try and let you know asap..

Thanks! (and a happy new year,btw! :-)

@borisbaldassari
Copy link
Author

I can't get the xapian backend working, I'm sorry.

Xapian eventually installed ok, sherlock actually tries to use it, but the db cannot be opened:

  File "/home/boris/text-sherlock/core/sherlock/backends/xapian_backend.py", line 63, in open_index
    self.index = xapian.WritableDatabase(path, xapian.DB_OPEN)
  File "/home/boris/text-sherlock/sherlock_env/lib/python3.4/site-packages/xapian/__init__.py", line 9151, in __init__
    _xapian.WritableDatabase_swiginit(self, _xapian.new_WritableDatabase(*args))
xapian.DatabaseOpeningError: /home/boris/text-sherlock/data/indexes/main/iamglass: Failed to open glass revision file for reading (No such file or directory)

I've added the following lines to local_settings.yml:

default_searcher: 'xapian'
default_indexer: 'xapian'
index_paths: '/crossminer/git_repos/'

Hum.. The index_paths directive doesn't seem to work either, but that's another problem I guess.

Any hint? Thanks a lot in advance to help me get that up and running..

@borisbaldassari
Copy link
Author

The folder /home/boris/text-sherlock/data/indexes/main/ exists, is writeable by the user. The file iamglass doesn't exist, though.

@borisbaldassari
Copy link
Author

My setup is probably too big, closing the issue for clarity's sake. Thanks for the support team, you're great! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants