Closed MrMoon closed 3 years ago
to elaborate more on it, As you insert into a table using a sequence, it simply appends the new value to the end of the index. When you insert into a table using a UUID for a primary key, it has to look up and insert the pointer into the index, potentially in the middle of a page, causing a page rewrite, and further index fragmentation.
We are good in the patient microservice
We are good in the employee microservice
Serial IDs cost less in time for indexing