0

When loading a page/table with more than 1000 results, it takes around six seconds for the data to load and sometimes temporarily freezes the application.

Pagination wont work because I need to get the counts for my "statistics cards" and rxdb doesn't provide any type of count functionality - so I'm forced to pull the entire dataset.

I'm currently using the mounted function to pull in the data and subscribe to updates

I would be grateful if any of you had any suggestions on how I could speed this up?

Jayson H
  • 1,928
  • 4
  • 21
  • 28
  • How many fields/field size for each record? – Nick Dawes Dec 15 '20 at 17:15
  • I'm collecting name, company, email, area code. – Jayson H Dec 15 '20 at 18:13
  • 1
    Does the data change often? I ask because one option might be to save the data as a json file, and include it on the page it’s required on with asyncData. The file will be compressed (brotli or gzip) across the wire, so should be in the ms rather than S transfer wise. – Nick Dawes Dec 15 '20 at 18:27
  • The individual documents never change, but new documents are being added quite often. I may give your idea a try, thanks for the suggestion. – Jayson H Dec 15 '20 at 19:01

0 Answers0