This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test-optimization.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const mongoose = require('mongoose'); | |
| const MONGODB_URI = process.env.MONGO_URI; | |
| if (!MONGODB_URI) { | |
| console.error('Missing MONGO_URI environment variable'); | |
| console.error('Usage: MONGO_URI="mongodb+srv://user:pass@host/db" node test-optimization.js'); | |
| process.exit(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * Test script to verify transaction query optimizations | |
| * Uses MONGO_URI from environment variable | |
| */ | |
| const mongoose = require('mongoose'); | |
| const MONGODB_URI = process.env.MONGO_URI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * COMPREHENSIVE TRANSACTION API BENCHMARK | |
| * | |
| * This script benchmarks all identified bottlenecks in the transaction API | |
| * and outputs comparison data for PR documentation. | |
| * | |
| * Usage: node comprehensive-benchmark.js <MONGODB_URI> | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * MongoDB Transaction Query Benchmark Script | |
| * | |
| * Compares performance of aggregation pipeline vs simple find() query | |
| * RUN WITH: node transaction-benchmark.js <MONGODB_URI> <START_DATE> <END_DATE> | |
| * | |
| * Example: | |
| * node transaction-benchmark.js "mongodb+srv://user:pass@host/db" "2026-02-01" "2026-02-28" | |
| * | |
| * SECURITY: This script only READS from database. No writes or modifications. |