Skip to content

First requests and requests to databases that have not been used for >1 minute have a ~2 seconds delay #208

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

Closed
HSKC opened this issue Feb 25, 2025 · 2 comments

Comments

@HSKC
Copy link

HSKC commented Feb 25, 2025

I have a very simple test application that fetches documents from a Couch DB. It has one database and 25 tiny documents.

The first time I do a request on a database, it needs about two seconds and some microseconds. Doesnt matter what call it is. Even GetDatabaseNames. Every subsequent call is a few thousand times faster (as it should be).

After about 1 minute without requests to the database, the same thing happens again. First request has a delay of two seconds.

If I make request every 30 seconds, there is never a delay. Seems like some session that is running out.

I use BasicAuth but I tried CookieAuthentication without success.

The CouchDB is not the problem. Requests via curl work fine every time.

I can upload my Code if that helps.

@matteobortolazzo
Copy link
Owner

Hi, it's probably related to other factors. The library makes HTTP calls and has no caching, so it has no hot/cold state

@HSKC
Copy link
Author

HSKC commented Apr 4, 2025

Thanks for the Answer. Seems to be a problem of CouchDB on Windows.

@HSKC HSKC closed this as completed Apr 4, 2025
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

2 participants