Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Where are the aggregation pipelines from Compass saved?

I built an aggregation pipeline using the Compass aggregation pipeline builder. Saved it. But sadly, when I try to load it, it crashes my Compass which gets stuck completely.

Where would I find it, that I can salvage my today’s work? Is it saved in the filesystem somewhere? Or in the database?

/Christoph

Hi Christoph,

If you are using versions of Compass older than 1.21 (which is currently in beta), the saved aggregations are stored in IndexedDB format in the local application preferences and are not easily accessible. In Compass 1.21, saved pipelines have moved to the filesystem (see: Where are saved aggregations in Compass?).

However, Compass should not crash or hang when loading a saved aggregation pipeline.

Please file a bug report in the MongoDB Jira issue tracker with more details including your specific version of Compass and any error message or behaviour related to this problematic pipeline: http://jira.mongodb.org/browse/COMPASS.

Regards,
Stennie

Thanks, Stennie.

Found the pipelines, and removed the ‘$merge’ stage from the end. Now it works again: if it times out, it just properly shows it with red frames etc. But the GUI is still usable.

With the $merge in the end, it would load, time out, then block the GUI with up to 200% CPU load.

Hi Christoph,

Glad you were able to find a quick fix!

Thanks for filing a bug report as well: https://jira.mongodb.org/browse/COMPASS-4233.

Regards,
Stennie