[ 
https://issues.apache.org/jira/browse/USERGRID-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Todd Nine updated USERGRID-1016:
--------------------------------
    Description: 
We shouldn't encode a UUID as a specific UUID field type, since we're encoding 
it as a string.  To keep our index tuples simple, and support both queries, we 
should store it as a string type.  We should support the following formats.

{code}
select * where myUuid = 'aaa65d8a-16a6-11e5-86ea-7b4f7ff44431'
{code}

As well as 

{code}
select * where myUuid = aaa65d8a-16a6-11e5-86ea-7b4f7ff44431
{code}

Notice the addition of single quotes in the first query, vs the parsing as a 
UUID type in the second query.  This will enable users to use both versions, 
but does not affect performance.


  was:
We shouldn't encode a UUID as a specific UUID field type, since we're encoding 
it as a string.  To keep our index tuples simple, and support both queries, we 
should store it as a string type.  We should support the following formats.

{code}
select * where myUuid = 'aaa65d8a-16a6-11e5-86ea-7b4f7ff44431'
{code}

As well as 

{code}
select * where myUuid = aaa65d8a-16a6-11e5-86ea-7b4f7ff44431
{code}


> Remove UUID field encoding in our ES fields
> -------------------------------------------
>
>                 Key: USERGRID-1016
>                 URL: https://issues.apache.org/jira/browse/USERGRID-1016
>             Project: Usergrid
>          Issue Type: Story
>            Reporter: Todd Nine
>            Assignee: Todd Nine
>
> We shouldn't encode a UUID as a specific UUID field type, since we're 
> encoding it as a string.  To keep our index tuples simple, and support both 
> queries, we should store it as a string type.  We should support the 
> following formats.
> {code}
> select * where myUuid = 'aaa65d8a-16a6-11e5-86ea-7b4f7ff44431'
> {code}
> As well as 
> {code}
> select * where myUuid = aaa65d8a-16a6-11e5-86ea-7b4f7ff44431
> {code}
> Notice the addition of single quotes in the first query, vs the parsing as a 
> UUID type in the second query.  This will enable users to use both versions, 
> but does not affect performance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to