balderdashy / balderdashy/sails

Model IDs Incremented by 10

Open
#6,969 4 comments 0 reactions 0 assignees View on GitHub
does this answer your question?
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

**Node version**: v12.16.1
**Sails version** _(sails)_: 1.2.3
**DB adapter & version** _(e.g. sails-mysql@5.55.5)_: 1.0.1
+ ClearDB MySQL on Heroku


It seems like my models' IDs are incremented by 10. Successive models have IDs of 1, 11, 21, 31, and so on.

This only happens in staging and production environments, where the MySQL adapter is being used. Locally, IDs are incremented as expected, by 1.

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing model creation with Node v12.16.1, sails-mysql@1.0.1, and ClearDB MySQL, comparing local behavior with staging and production; done means explaining why successive IDs advance by 10 and verifying the IDs increment by 1.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mysql, node.js
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.