Skip to content

Commit ce48a04

Browse files
docs: update UUID recommendation to v7 for better database performance
1 parent 263c804 commit ce48a04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

symfony/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ The framework also uses these metadata to serialize and deserialize data from JS
361361

362362
For the sake of simplicity, in this example we used public properties (except for the ID, see below). API Platform (as well
363363
as Symfony and Doctrine) also supports accessor methods (getters/setters), use them if you want to.
364-
We used a private property and a getter for the ID to enforce the fact that it is read only (we will let the DBMS generate it). API Platform also has first-grade support for UUIDs. [You should
365-
probably use them instead of auto-incremented IDs](https://www.clever-cloud.com/blog/engineering/2015/05/20/why-auto-increment-is-a-terrible-idea/).
364+
We used a private property and a getter for the ID to enforce the fact that it is read only (we will let the DBMS generate it). API Platform also has first-grade support for UUIDs v7. You should probably use them instead of auto-incremented IDs.
366365

367366
Because API Platform provides all the infrastructure for us, our API is almost ready!
368367

0 commit comments

Comments
 (0)