You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Optimised binary UUIDs in Laravel
1
+
# Using optimised binary UUIDs in Laravel
2
2
3
3
[](https://packagist.org/packages/spatie/laravel-binary-uuid)
There are some use case where you want to use uuids as a primary key in your database. Unfortunately using a regular uuid can be quite slow.
10
+
Using a regular uuid as a primary key is guaranteed to be slow.
11
11
12
-
This package solves that performance problems by storing a slightly tweaked binary version of the uuid. You can read more about this storing mechanism here: [http://mysqlserverteam.com/storing-uuid-values-in-mysql-tables/](http://mysqlserverteam.com/storing-uuid-values-in-mysql-tables/).
12
+
This package solves the performance problem by storing slightly tweaked binary versions of the uuid. You can read more about the storing mechanism here: [http://mysqlserverteam.com/storing-uuid-values-in-mysql-tables/](http://mysqlserverteam.com/storing-uuid-values-in-mysql-tables/).
13
13
14
+
The package can generate optimized versions of the uuid. It also provides handy model scopes to easily retrieve models that use binary uuids.
14
15
15
-
The package currently only supports MySQL and SQLite.
16
+
Want to test the perfomance improvements on your system? No problem, we've included [benchmarks](#running-the-benchmarks).
17
+
18
+
The package currently only supports MySQL and SQLite.
0 commit comments