2017 © Pedro Peláez
 

library optimized-uuid

Uuids for optimized storage

image

charlydagos/optimized-uuid

Uuids for optimized storage

  • Wednesday, August 10, 2016
  • by charlydagos
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Optimized Uuids

Small and simple package implementing an efficient way of storing UUIDs in a MySQL (InnoDB) database., (*1)

Credit for the actual research goes to Karthik Appigatla, and his blog post for Percona, (*2)

https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/, (*3)

This is available for download through packagist here, (*4)

https://packagist.org/packages/charlydagos/optimized-uuid, (*5)

Usage

This library depends on ramsey/uuid., (*6)

To use it you could do, (*7)

<?php
use Charlydagos\OptimizedUuid\OptimizedUuid;

$uuid = ...; // exisitng uuid string
$optimizedUuid = OptimizedUuid::toOrderedUuid($uuid);

Or create an object with an exisitng Uuid object, (*8)

<?php
use Ramsey\Uuid\Uuid;
use Charlydagos\OptimizedUuid\OptimizedUuid;

$uuid = Uuid::uuid1();
$optimizedUuid = new OptimizedUuid($uuid);

License

Please see the LICENSE file in this repo., (*9)

The Versions

10/08 2016

dev-master

9999999-dev

Uuids for optimized storage

  Sources   Download

MIT

The Requires

 

The Development Requires

by Carlos D