💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
Find a file
Ben Gotow 7f94680550 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
apm feat(logging): Developer bar, verbose logging to logstash, Electron 0.26.0 2015-05-19 17:02:46 -07:00
arclib fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
build fix(sqlite): Connect to sqlite directly rather than sending queries over IPC (twice...) 2015-07-30 18:09:20 -07:00
docs-templates Move guides from Edgehill repo to Redwood and only generate docs from classes 2015-06-02 16:24:56 -07:00
dot-nylas refactor(cruft): remove old Atom docs and other cruft 2015-07-24 14:27:21 -07:00
exports perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
internal_packages perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
keymaps fix(contact-chips): Contact chips are editable and have much better style 2015-08-03 13:06:28 -07:00
menus fix(getting-started): New menu item, sample package for devs 2015-07-06 14:23:51 -04:00
script fix(build): Linux needs to build sqlite after pulling electron 2015-07-31 12:14:14 -07:00
spec WIP: This is the initial diff for new folders & labels. 2015-07-16 11:54:20 -04:00
spec-nylas perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
src perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
static feat(message-list): better sending state 2015-08-03 17:19:07 -07:00
vendor fix(sqlite): Connect to sqlite directly rather than sending queries over IPC (twice...) 2015-07-30 18:09:20 -07:00
.arcconfig Separate notifications if less than five 2015-07-15 13:18:10 -07:00
.arclint Separate notifications if less than five 2015-07-15 13:18:10 -07:00
.gitattributes fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
.gitignore add(specs): Empty folders and node_modules in spec fixture to fix specs 2015-06-03 10:23:54 -07:00
.gitmodules fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
.node-version fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
atom.sh refactor(code): replace all instances of atom-shell and AtomShell and atomShell 2015-05-20 10:20:10 -07:00
coffeelint.json feat(docs): New docs tasks and React 0.13.2 2015-04-24 11:33:10 -07:00
LICENSE.md refactor(cruft): remove old Atom docs and other cruft 2015-07-24 14:27:21 -07:00
package.json bump(version): 0.2.3 2015-08-03 19:46:38 -07:00
README.md fix(readme): Rip out Atom readme, replace with our own minimal one 2015-04-30 16:24:09 -07:00

Nylas Mail is a hackable platform for your personal data, built on Electron and the Nylas Platform APIs.

Building Nylas Mail

Extending Nylas Mail

It's easy to extend Nylas Mail using your favorite web technologies. Check out the Nylas Package API to get started, and the API reference for information about specific classes.