apostrophecms / apostrophecms/apostrophe

3.0: Supporting DocumentDB

Open
#2,918 2 comments 4 reactions 0 assignees View on GitHub
enhancement v3
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

Recently stumbled upon an issue when trying to deploy on AWS. I'm not sure if it's only related to A3, it could also be present in A2.

For hosting the DB, we were going to use AWS's DocumentDB, but we got an issue with index length.

From what I understand, DocumentDB index length is smaller than the default MongoDB.
We're hosting on MongoDB Atlas instead, but wanted to share our experience.

https://docs.aws.amazon.com/documentdb/latest/developerguide/limits.html#limits-naming_constraints

```MongoError: namespace name generated from index name is too long
at /app/node_modules/mongodb-core/lib/connection/pool.js:581:63
at authenticateStragglers (/app/node_modules/mongodb-core/lib/connection/pool.js:504:16)
at Connection.messageHandler (/app/node_modules/mongodb-core/lib/connection/pool.js:540:5)
at emitMessageHandler (/app/node_modules/mongodb-core/lib/connection/connection.js:310:10)
at TLSSocket. (/app/node_modules/mongodb-core/lib/connection/connection.js:453:17)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at TLSSocket.Readable.push (_stream_readable.js:208:10)
at TLSWrap.onread (net.js:601:20)
ok: 0,
errmsg: 'namespace name generated from index name is too long',```

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files or tests; start by reading the linked AWS DocumentDB limits and reproducing deployment with the reported index-length error. Trace where the affected MongoDB indexes are created, then verify that deployment succeeds on DocumentDB without exceeding its namespace or index-name limits.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, mongodb
Domain
backend, cloud, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.