add getAllInboxMessageIds and getAllSentMessageIds to API #356
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-15#356
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "getMessageIds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently if you don't know the message id your messages, you must resort to calling getAllXMessages and crawl through the list. Given a large inbox with some large messages, building the returning JSON string can consume all of your system's resources.
By providing the methods getAllInboxMessageIds and getAllSentMessageIds that return the Id's only, the consumer software can more intelligently decide what messages it needs to retrieve, and it can retrieve the messages individually, reducing server load.
Results could be simpler and return a list, but they're consistent with the other API methods that return more object-like formats: