Have a field to fetch last-n messages from Waku-Store in QueryOptions.
See original GitHub issueThis is a change request/support request
Problem
Right now, while fetching messages from waku-store using js-waku, if the number of messages is quite high then it takes quite a while to load the messages.
Proposed Solutions
So can we have an extra query option which only fetches the last-N messages from the DB?
Something like:
waku.store
.queryHistory([ContentTopic], { count: 20 })
// fetches only the last 20 messages, if less than 20, then all are fetched.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Fetch and replace data from firestore to make a recent ...
I was wondering if there was a way to fetch the data of the very last message sent for the recent chat feed....
Read more >Get a field value on the basis of condition in aggregation
i want to get createdAt field of last message of a specific user in agroup suppose here userId is any user . i...
Read more >Fetch reference field as a displayed name REST API
Solved: Hi, I'm trying to fetch data from another dev instance. My question is how to fetch display name model and model category...
Read more >Search query language - Graylog Docs
Syntax. The search syntax is very close to the Lucene syntax. By default all message fields are included in the search if you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The change is now released in 0.14.0. I see you also fixed your code. Closing, please re-open or open a new issue if you face any other problem.
Please have a go at my proposal above in combination with
timeFilter
and let me know if this is still needed.