ermouth / couch-photon

An alternative CouchDB admin panel
MIT License
87 stars 12 forks source link

DB list freezes for long time when there are many (>1k) DBs #30

Closed SAPikachu closed 3 years ago

SAPikachu commented 4 years ago

It would be great if the list can be lazy-loaded, or alternatively provide an option to disable loading of DB information in such cases (to avoid freezing the UI and pressuring the server). Thank you!

ermouth commented 4 years ago

That option already created very long ago: click the rightmost button at the tabs panel, and you may discover DB list cols setting, which allows disabling both loading security descriptors and sizes.

However, I had a point in backlog to add more comprehensive behavior.

ermouth commented 4 years ago

Btw, what would you say if favorites sublist always loads security and size info regardless of that settings?

SAPikachu commented 4 years ago

That option already created very long ago: click the rightmost button at the tabs panel, and you may discover DB list cols setting, which allows disabling both loading security descriptors and sizes.

Oh I was not aware of that, it works for me, thank you!

Btw, what would you say if favorites sublist always loads security and size info regardless of that settings?

In my case it doesn't really matter, but I see that it would be a nice addition for many cases. :)

ermouth commented 3 years ago

Investigating another complaint of freezing DB list I discovered the reason might be non-native scroll turned on. With native scroll the issue is nearly negligent.

So if you are on Mac which supports overflow:overlay CSS rule, consider turning native scroll on. Non-native scroll plugin was added to emulate overflow:overlay on PCs.

To turn native scroll on go to settings (rightmost button at navbar), and set Scroll sensitivity to Native, like this: Снимок экрана 2020-12-09 в 21 03 31

SAPikachu commented 3 years ago

Thanks! I am using PC, I just checked and saw that it is already set to Native, so I guess it isn't the issue.

PS: If it helps, I can send you address and credential to my server to see if you can reproduce the issue, let me know. :)