What are the Slack Archives?
Itโs a history of our time together in the Slack Community! Thereโs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonโt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Morning! Has anyone had an issue with the `spy_oms_state_machine_lock` table going above the default
Morning! Has anyone had an issue with the spy_oms_state_machine_lock
table going above the default auto-increment column range? Over the weekend it seems like we went over the column limit (it is an int4
, so 2147483647
) and caused some major issues ๐
Comments
-
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
not yet, but it will be a problem for us too... U can override it in pyz level and overwrite the pk as bigint (take care that bigint is mapped as string back, although u define the mapping).
0 -
Hmm - yeah that will definitely increase the maximum value, but I guess only puts it off for a longer period of time
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
int4 to bigint u have a lot of time, sure! but no other solutions now.... (if u continue to use db as lock, of course u can reset the autoincrement etc...)
0 -
You could reset the auto_increment on this table from time to time, as the entries should only be in there for a short amount of time.
This is one of the flaws of Spryker, where using an auto_increment does not make sense and choosing a different "id" column would have avoided the issue (identifier could be used as well). Another solution would be to use an application generated id instead, like a uuid for example by using https://github.com/donkeycode/propel-uuid-behavior.0 -
Yeah definitely, I agree can't see the need for the auto-increment on this table ๐
0 -
I think it is a requirement of propel to always have a PK. Agree a UUID would be much better for this type of table
0 -
@UKEP86J66 To have a primary key is a requirement of propel, but it does not need to be an integer nor an auto_increment.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K ๐ Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random