Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Meteor 2.16 and Oplog Tailing Optimization
Meteor profile imageDenilson
Denilson forMeteor

Posted on

     

Meteor 2.16 and Oplog Tailing Optimization

We're excited to announce the release of Meteor 2.16, packed with significant improvements designed to optimize your experience and enhance performance.

Optimized Oplog Tailing Performance

In response to community feedback and extensive discussions about Meteor's oplog implementation and its limitations in scaling, we've introduced new MongoDB package options to optimize oplog tailing performance.

This was thanks to one of our community members,@twisterking, who opened apull request introducing this new improvement.

The implementation provides a solution for including or excluding specific collections from oplog tailing. This simple yet effective change can drastically reduce CPU load during large batch updates.

Usage:
To configure this optimization, update your settings.json file as follows:

{//...allothersettings,"public":{//allyourpublicsettings},"packages":{"mongo":{"oplogExcludeCollections":["products","prices"],//Excludes"products"and"prices"collectionsfromoplogtailing.//OR:"oplogIncludeCollections":["messages"]//ONLYmonitorsthe"messages"collectionforoplogupdates(andall"admin.$cmd"oplogs).}}}
Enter fullscreen modeExit fullscreen mode

We believe this enhancement will greatly benefit users, reducing unwanted server restarts and ensuring smoother operations.

Session Storage Option for Accounts

Some developers have suggested that a storage system other than Local Storage (which Meteor users use to store login tokens and other things) should be possible, and the second option should be Session Storage.

Today, this is possible thanks to@StorytellerCZ, who created thisPR to address the matter.

To use Session Storage instead of the default Local Storage, you can add this to your settings file:

{//...allothersettings,"public":{//...allyourpublicsettings"packages":{"accounts":{"clientStorage":"session"}}}}
Enter fullscreen modeExit fullscreen mode

From here, your app will start using Session Storage!

How to test it

To install Meteor in this version:

npx meteor@latest
Enter fullscreen modeExit fullscreen mode

You can create a new app in this version with:

meteor create myapp--release 2.16
Enter fullscreen modeExit fullscreen mode

Or update from 2.15 to this one with:

meteor update--release 2.16
Enter fullscreen modeExit fullscreen mode

If you're coming from an older version, please check ourMigration Guides.

Special note about Meteor 3 Launch Week

With 2.16, we're also having our Meteor 3 Launch Week, introducing more of ourMeteor 3, as well asGalaxy 2.0, and we will have! So keep an eye on ourdev.to and onX.

Conclusion

This 2.16 version offers more to explore. Check out the rest in ourPR.

We can leave without mentioning the people who made this release possible:

@nachocodoner
@StorytellerCZ
@jamauro
@Twisterking
@harryadel

Thank you for your hard work and dedication to the Meteor.js community!
We encourage all users to update to Meteor.js 2.16 to take advantage of these new features and improvements.
For more information about Meteor.js, please visit the Meteor.jswebsite.

Happy coding!

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
sherrydays profile image
Sherry Day
From a place far, far away
  • Joined

How does the new oplog tailing optimization impact large applications? Thanks for sharing these improvements!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Build great applications faster than ever using Meteor.js

More fromMeteor

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp