Skip to content

Conversation

@CriztianiX
Copy link
Contributor

it looks like the elastic search library uses lua socket directly, so it will block the nginx worker (using it in nginx) when it runs queries. This patch provides support for openresty, using openresty's co-socket api to do non-blocking requests to the elastic search server
An example can be found here:
https://github.com/CriztianiX/lapis-elasticsearch/blob/master/lapis/db/elasticsearch.lua#L16

@DhavalKapil
Copy link
Owner

Can you add an example to use this preferred_engine in examples? preferred_engine sounds too long, I guess just engine would do.

Also you will need to modify the tests so that they pass.

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

Successfully merging this pull request may close these issues.

2 participants