We've finally released this feature to the public, so if you have Google Gears installed you can start searching and sorting your messages! We're also pitching Gears directly to people who've got 5000 or more messages, and will start lowering that threshold soon.
This blog post is mainly a follow-up to the presentation I did at Google I/O about MySpace Mail Search with Gears. Some folks at the show expressed interest in digging into the code a little bit deeper so I mentioned I'd provide links to the current source here. I'm also including a link to the public slides, and notes for the presentation if you're interested.
So, here goes!
The main source code for the feature, which contains the Gears abstraction, the state management class, the client-side pager class, and various other classes and global functions can be found here:
The 2 worker pool threads that are in use currently can be found here:
As mentioned in the presentation, the difference between them is the index worker deals with committing new messages while the sync worker deals with updating message statuses, or deleting messages.
The slide deck and notes for the presentation are available courtesy of Google Docs.
If you have any questions, feel free and email me at owyn [at] myspace [dot] com! Thanks for reading :)