Closed Bug 929919 Opened 11 years ago Closed 11 years ago

[Messaging] getThreads optimization

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.3 Sprint 6 - 12/6

People

(Reporter: borjasalguero, Assigned: borjasalguero)

References

Details

Attachments

(1 file, 1 obsolete file)

Update the logic in 'getThreads' method due to now it's not well-optimized.
Depends on: 927783
This is needed because due to the current logic of 'getThreads', we are requesting the entire list of threads *every time* we are sending a new message to a new recipient. This is definitely a non-optimized implementation, and *blocks* the APP when the list of threads is large.
Assignee: nobody → borja.bugzilla
Blocks: 919995
blocking-b2g: --- → 1.3?
blocking a committed 1.3 user story. 1.3+
blocking-b2g: 1.3? → 1.3+
Sorry, this is blocking nothing here. This is like this since 1.0. Please don't abuse the flags and dependencies.

That said, I'd be very happy with landing this for 1.3. It's just that this won't hold the release.
No longer blocks: 919995
blocking-b2g: 1.3+ → ---
Summary: [Messaging] Optimize getThreads method logic in Gaia → [Messaging] getThreads optimization & mutation removed
Attached file Pull request (obsolete) —
Attachment #828048 - Flags: review?(felash)
This is part of the work needed in getThreads, due to when the amount of threads is large, forwarding a message or sending a new one could be stucked for seconds in the composer due to this bug. Waiting Julien's review, and one this will be in master, I'll request 1.3? Flag.
Comment on attachment 828048 [details]
Pull request

Comments on github

please do smaller patches in the future. Big patches makes it harder to focus and therefore to review and as a result it takes too much of my time.

Thanks!
Attachment #828048 - Flags: review?(felash)
Summary: [Messaging] getThreads optimization & mutation removed → [Messaging] getThreads optimization
Target Milestone: --- → 1.3 Sprint 5 - 11/22
Target Milestone: 1.3 Sprint 5 - 11/22 → 1.3 Sprint 6 - 12/6
Attached patch Pull requestSplinter Review
This is the patch solving multiple request to getThreads, improving the performance!
Attachment #828048 - Attachment is obsolete: true
Attachment #8336005 - Flags: review?(felash)
Comment on attachment 8336005 [details] [diff] [review]
Pull request

review is finished!

Overall a welcome addition but I think this can be even better!

Please add a new commit for the follow-ups to your existing commit so that the next review is easy ;)
Attachment #8336005 - Flags: review?(felash)
Blocks: 943778
Comment on attachment 8336005 [details] [diff] [review]
Pull request

Code updated! r?
Attachment #8336005 - Flags: review?(felash)
Blocks: 935177
Comment on attachment 8336005 [details] [diff] [review]
Pull request

r=me

thanks, this is a very helpful addition!
Attachment #8336005 - Flags: review?(felash) → review+
Bug 943778 is a follow-up for creating a more OO approach on threads.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 944597
No longer blocks: 944597
Depends on: 944597
Depends on: 968815
Depends on: 952526
Depends on: 978321
No longer depends on: 978321
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: