Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syncIndexes to all models JIC #1750

Merged
merged 1 commit into from
Sep 6, 2020

Commits on Sep 6, 2020

  1. Add syncIndexes to all models JIC

    * Possible recommendation as `expires` alias to `expireAfterSeconds` may need this to properly set values of an index that is created app side to sync with back-end.
    * Increase event `emitter.setMaxListeners` to accommodate additional MongoDB usage with error thrown:
    
    ``` console
    Index event triggered/trapped for User model
    Index event triggered/trapped for Discussion model
    Index event triggered/trapped for Strategy model
    Index event triggered/trapped for Remove model
    Index event triggered/trapped for Comment model
    Index event triggered/trapped for Group model
    Index event triggered/trapped for Flag model
    Index event triggered/trapped for Vote model
    (node:10567) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 open listeners added to [NativeConnection]. Use emitter.setMaxListeners() to increase limit
    ```
    
    Applies to OpenUserJS#1744 OpenUserJS#1730 and followup for OpenUserJS#1516 ... followup needed on mLab for index that's already there *(which I didn't put there)*
    Martii committed Sep 6, 2020
    Configuration menu
    Copy the full SHA
    01767d3 View commit details
    Browse the repository at this point in the history