clams-tech / Remote

Remote control your Core Lightning node
https://remote.clams.tech
GNU General Public License v3.0
41 stars 7 forks source link

Enhancement: Performance for Large Nodes #210

Closed lnbc1QWFyb24 closed 9 months ago

lnbc1QWFyb24 commented 9 months ago

This PR refactors how lists items are retrieved from the db, filtered, sorted and rendered so that the app can handle 100s of thousands of payments, forwards etc.

Rather than loading all list items in to memory, and then filtering/sorting, we now use the db to limit the top 25 and let the DB do the filtering and sorting first. We then render those items in a virtual list and load on demand when scrolled to the bottom of that list. This makes the app super snappy and the filters and sorting are much more useful now as well.

socket-security[bot] commented 9 months ago

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
date-picker-svelte 2.9.0 None +2 3.11 MB probablykasper
@sveltejs/kit 1.25.1...1.27.2 None +3/-3 4.89 MB svelte-admin
@tauri-apps/api 1.5.0...1.5.1 None +0/-0 319 kB tauri-apps-ci-user
svelte 4.2.1...4.2.2 None +1/-0 3.07 MB svelte-admin