openphacts / GLOBAL

Global project issues [private for now. owner lee harland]
3 stars 0 forks source link

Structure search performance & timeouts #371

Open nicklynch opened 7 years ago

nicklynch commented 7 years ago

Structure searching at the moment from the web interface and direct is giving timeouts more often at the moment and is slower than previously Examples that timeout on the Web interface are:

Does the index need to be rebuild?

Examples:

https://beta.openphacts.org/2.1/structure/exact?app_id=08bbd062&app_key=a70ea371bda724999d20109d11752eb1&searchOptions.Molecule=CC1%3DCN%3DC(C(%3DC1OC)C)C%5BS%40%5D(%3DO)C2%3DNC3%3DC(N2)C%3DCC(%3DC3)OC&searchOptions.MatchType=0

The error message is usually of this format

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

``` Internal Server Error :: Puelia - Linked Data API ```
Puelia: an implementation of the Linked Data API

Internal Server Error

Sorry, there was an internal error in serving this request, possibly due to an upstream server, or a configuration error.

Request: https://ops2.rsc.org/ops/json.ashx?op=ExactStructureSearch&CSCSearchScopeOptions.RealOnly=true&searchOptions.Molecule=CC1%3DCN%3DC%28C%28%3DC1OC%29C%29C%5BS%40%5D%28%3DO%29C2%3DNC3%3DC%28N2%29C%3DCC%28%3DC3%29OC&searchOptions.MatchType=0 failed