[GH-ISSUE #39] Avoid / in _ids #598

Closed
opened 2026-04-16 22:00:46 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @gr2m on GitHub (May 15, 2015).
Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/39

Regarding https://github.com/eHealthAfrica/couchdb-best-practices#one-to-n-relations, I'd strongly suggest to avoid using /. We do that in Hoodie and it keeps causing quite some headaches. Also, to quote @nycdubliner:

FOR THE LOVE OF GOD NO /.
(Specifics: Causes issues with our nginx re-write config that we don't have a fix for.)

Originally created by @gr2m on GitHub (May 15, 2015). Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/39 Regarding https://github.com/eHealthAfrica/couchdb-best-practices#one-to-n-relations, I'd strongly suggest to avoid using `/`. We do that in Hoodie and it keeps causing quite some headaches. Also, to quote @nycdubliner: > FOR THE LOVE OF GOD NO `/`. > (Specifics: Causes issues with our nginx re-write config that we don't have a fix for.)
Author
Owner

@jo commented on GitHub (May 15, 2015):

Your suggestion?
https://www.youtube.com/watch?v=vhsQPbpR438

<!-- gh-comment-id:102416811 --> @jo commented on GitHub (May 15, 2015): Your suggestion? https://www.youtube.com/watch?v=vhsQPbpR438
Author
Owner

@gr2m commented on GitHub (May 15, 2015):

use - or _

<!-- gh-comment-id:102426596 --> @gr2m commented on GitHub (May 15, 2015): use `-` or `_`
Author
Owner

@jo commented on GitHub (May 15, 2015):

I don't think they are a good fit. 👎
The problem is they often occur in the id part.

<!-- gh-comment-id:102506811 --> @jo commented on GitHub (May 15, 2015): I don't think they are a good fit. :-1: The problem is they often occur in the id part.
Author
Owner

@jo commented on GitHub (May 15, 2015):

But I'm OK with a different seperator

<!-- gh-comment-id:102508121 --> @jo commented on GitHub (May 15, 2015): But I'm OK with a different seperator
Author
Owner

@gr2m commented on GitHub (May 15, 2015):

You either use - or _ in your IDs, not both. Just be consistent in your project

<!-- gh-comment-id:102542826 --> @gr2m commented on GitHub (May 15, 2015): You either use `-` or `_` in your IDs, not both. Just be consistent in your project
Author
Owner

@jo commented on GitHub (May 16, 2015):

I am in favor of : as this is already used in _users.

<!-- gh-comment-id:102597204 --> @jo commented on GitHub (May 16, 2015): I am in favor of `:` as this is already used in _users.
Author
Owner

@gr2m commented on GitHub (May 16, 2015):

: 👍

<!-- gh-comment-id:102624439 --> @gr2m commented on GitHub (May 16, 2015): `:` :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/couchdb-best-practices#598
No description provided.