Replies: 2 comments
|
Thanks for the detailed report — the numbers made the cause easy to pin down. Root cause. The JDBC backend's cursor ( Workaround available right now — shrink the cursor fetch size via a system property (add it to For your directory size this should cut database network traffic by roughly ~20×, at the cost of a few extra round-trips on long sequential scans. Values in the 20–100 range are reasonable; please share what you observe. Proper fix (serving repositioning from the already-fetched buffer + adaptive batch sizing, expected to reduce dn2id scope-scan traffic by ~1000× for one-level searches) is tracked in #860. |
|
tested and experienced the same results. I repeated the test with fetch size 1 and noted about half the network And tables stats: |
Uh oh!
There was an error while loading. Please reload this page.
Hi, im experimenting with the JDBC backend and using postgres as the database. Im noticing on a medium sized directory (~13,000) entries poor performance but what I think is excessive network utilization, about 52MB per second which seems high so i am wondering if this is typical, or if there are any optimizations I could look at? The entries are not excessively large, about 10 attributes each with each attribute less than 100 chars. The following is a screenshot of data transfer over a 5 minute window from postgres. In that timeframe there are about 4000 search requests, 750 add requests, and 250 modify requests. Despite the poor performance I experience at my app, etimes in the access logs look low. If I switch the same performance test to the je backend, I get much smoother results. jdbc url: db-directory
jdbc:postgresql://database.com:5432/db?user=user&password=password&sslmode=require&connectTimeout=30&socketTimeout=60&tcpKeepAlive=trueAll reactions