MagnetoDB/specs/uuid-for-a-table
< MagnetoDB
Revision as of 10:27, 1 October 2014 by Ajaya Agrawal (talk | contribs) (Created page with "==UUID for a table == Launchpad: [https://blueprints.launchpad.net/magnetodb/+spec/table-uuid uuid for a table] An unique identifier for each table in MagnetoDB.. === Probl...")
UUID for a table
Launchpad: uuid for a table
An unique identifier for each table in MagnetoDB..
Problem Description
Projects like ceilometer which consume data from MagnetoDB via notifications needs a field(resource_id) which should be unique for each unit of resource. Currently we don't have an identifier which identifies a table uniquely in MagnetoDB.
Proposed Change
- Introduce a field UUID for each table.
- Expose an API to get the project_id and table_name pair given the UUID.
Alternatives
(Project_id+table name) could also be a unique pair. But When a table is deleted and created again the new created table would be treated as the same resource. That should not happen.
Security Impact
None.
Notifications Impact
UUID field would be added to each notification.
Other End User Impact
None.
Performance Impact
None.
Other Deployer Impact
None.
Developer Impact
None.
Implementation
- We would add a field UUID to the metadata table (magnetodb.table_info)
- Add an api like /UUID to magnetodb to get table details.
Assignee(s)
Primary assignee:
<ajayaa>
Other contributors:
<None>
Work Items
- Change the schema of table_info.
- Add a UUID field to each table, when the table is created.
- Write interface for API.
Dependencies
None.
Documentation Impact
None.
References
None.