Mailspring/internal_packages
Ben Gotow 1e6e857f28 perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks
Summary:
Consolidate the smarts from ChangeFolderTask into a generic ChangeMailTask

ChangeMailTask:
   - only makes requests for threads / messages that actually changed
   - handles incrementing / decrementing locks
   - writes changes to the database in a single pass, and only writes modified models
   - encapsulates the undo state that was built into ChangeFolderTask

This change means that ChangeLabelsTask enjoys the same "smarts" as ChangeFolderTask. Label changes resulting in no-ops do not create web requests, you can undo label changes and they go back to the correct previous state.

Replace "UpdateThreadsTask" and "UpdateNylasObjectsTask" with subclasses based on the same code used for folder/labels

This means that the naming and parameter sets are consistent for all thread/message changing tasks. It also means that starring/marking as use the same (tested) business logic and starring 999 already-starred threads doesn't create 999 requests.
Go away DraftCountStore - nobody wants you in secondary windows

Add "Debug query plans" option which prints out the steps the database is taking. Look for "SCAN" to now you're having a bad time.

Make "version" field queryable, when we receive deltas/API response, find all versions of existing models in a single query without loading or parsing the objects

Contact: Add index for lookup by email

Label: add index for lookup by name

Message: Add index for message body join table

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D1840
2015-08-05 15:53:08 -07:00
..
account-sidebar perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
attachments fix(T2387): Use better file icons from SDW 2015-07-31 12:34:24 -07:00
calendar-bar fix(T2418): Make buttons in the composer footer 4px taller 2015-07-30 14:51:36 -07:00
category-picker perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
composer feat(message-list): better sending state 2015-08-03 17:19:07 -07:00
composer-signature feat(signatures): Initial signature support 2015-07-14 12:20:06 -07:00
developer-bar feat(draft-syncback): Sync drafts with Gmail (API does not support Exchange syncback) 2015-07-22 11:18:23 -07:00
events RSVP tile for events on messages 2015-07-28 18:21:30 -07:00
file-list feat(attachments): Tons of tiny fixes to attachments, drag-and-drop attachments to other apps 2015-07-15 13:15:05 -07:00
inbox-contact-elements fix(contact-chips): Contact chips are editable and have much better style 2015-08-03 13:06:28 -07:00
message-list perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
message-templates feat(salesforce): new UI for Salesforce 2015-06-17 20:40:08 -07:00
mode-switch fix(styles): fix button padding and styles 2015-07-23 12:22:27 -07:00
notification-mailto refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
notification-update-available fix(notifications): Give notifications tag like HTML5 Notifications so you can de-dupe 2015-05-25 10:27:36 -07:00
notifications fix(*): can select participant with space if it's an email 2015-07-13 10:25:30 -04:00
onboarding WIP: This is the initial diff for new folders & labels. 2015-07-16 11:54:20 -04:00
search-bar Threads now sorted by receivedrecetndate 2015-07-28 14:03:55 -07:00
settings fix(getting-started): New menu item, sample package for devs 2015-07-06 14:23:51 -04:00
sidebar-fullcontact feat(salesforce): new UI for Salesforce 2015-06-17 20:40:08 -07:00
sidebar-inbox-internal Adding ATag component which prevents <a> tags from taking over edgehill when clicked. 2015-06-25 10:28:31 -07:00
thread-list perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
today fix(today): Temporarily remove today view 2015-07-20 11:53:48 -07:00
tooltip fix(tooltip): doesn't show on archive either 2015-08-03 10:57:56 -07:00
ui-dark RSVP tile for events on messages 2015-07-28 18:21:30 -07:00
ui-light fix(build): Temporarily disable 'Task' tests Jenkins can't run, and avoid empty ui-variables files 2015-06-03 12:04:43 -07:00
undo-redo fix(*): Minor performance tweaks and fixes to category picker 2015-08-03 17:05:31 -07:00
unread-notifications fix(notifications): > 5 should be >= 5 2015-07-16 20:34:55 -07:00