Estudo Comparativo entre MongoDB e PostgreSQL usando Embedding Documents
Paper authors
André Merlo · Jorge N. S. Pavão · Luiz C. de Freitas · Jorge Soares · Diego Brandão · Kele Belloze
XVIII Brazilian e-Science Workshop (BreSci 2024), co-located with SBBD · pp. 64–71 · DOI 10.5753/bresci.2024.244119
Read the paper and original abstract on SBC OpenLib · Open this workflow on AkôFlow Hub
Paper abstract in English
The authors evaluate MongoDB and PostgreSQL on complex analytical queries to compare performance in e-Science workloads. The study considers MongoDB documents with embedded records and contrasts them with a PostgreSQL implementation. PostgreSQL leads most of the reported preliminary tests, and MongoDB remains competitive on particular queries.
What this AkôFlow workflow reproduces
Portable audit of Q1 from the published repository, using genuine TPC-H dbgen 2.13.0 at scale factor 0.01 (complete generated lineitem table). The original MongoDB pipeline filters through 1998-12-01 while the original PostgreSQL query filters through 1998-09-02. Run both unchanged, then an explicitly named aligned variant that changes only MongoDB’s cutoff to 1998-09-02. Execute each engine/mode with and without an index in isolated database instances. Validate numerical equivalence only for aligned semantics and record original-source disagreement. This is a Q1 audit, not reproduction of all 22 queries, the paper’s hardware, scale or performance ranking. Timings under concurrent execution are observations, not a controlled database benchmark. Original data generator and specification: https://www.tpc.org/tpch/ and https://github.com/electrum/tpch-dbgen/tree/32f1c1b92d1664dba542e927d23d86ffa57aa253. TPC-H data are generated by definition; no hand-built fixture replaces them. Original code authors retain attribution; upstream has no explicit license declaration. MongoDB binary is obtained from its official distribution; respective upstream terms apply.
The recorded local run completed 10/10 activities. The workflow definition contains 10 activities. Original scientific source
Run with the public container
Import the workflow YAML from the Workflow tab. The container is pinned to the original image digest and can be pulled without signing in to GHCR.
docker pull ghcr.io/uffescience/akoflow-examples/tpch-databases@sha256:9bfa73e297c7e7ddbec9dfec7493e7c5373d8342392599374d0a37d59ad9459d
Hub publication maintained by @ovvesley. Scientific authorship is credited above.
Measured execution and evidence
The native Docker run completed 10/10 activities in 32.590 seconds. The public GHCR image preserves the executed image digest. The historical snapshot retains the original local image reference recorded by the daemon.
Measured execution · completed · 10/10 activities completed
Run ID tpch-databases-local-5dff16106f-run-20261117t152506.699433105
Open execution results · Download native experiment JSON
Open the portable workflow with the public GHCR image
Evidence files
- Execution summary
- Scientific validation
- Independent validation
- Artifact sizes and SHA-256 hashes
- Measured metrics CSV
Execution figures



Execution environment and schedule
The portable GHCR version includes a configured local Docker environment and schedule. This configuration has no execution record. The measured executions and their original environments are linked above.
View the environment in AkôFlow Hub · Download the environment and schedule snapshot