[ 
https://issues.apache.org/jira/browse/IOTDB-843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180925#comment-17180925
 ] 

Xiangdong Huang commented on IOTDB-843:
---------------------------------------

Yes, I just discussed with [~haonan] yesterday about this.

In my opinion, we need a new data type char(n), which defines the max-length of 
the string.

Then, this kind of data should also be managed by the Array Pool for 
performance consideration. 

But when serialize the data, we need to consider how to do it is more 
economical. For example, if n = 4, then even the user writes one char, we use 4 
chars to store it.

If n =64, we may use the real length + real chars to store it.

> Add a new datatype String with specified length
> -----------------------------------------------
>
>                 Key: IOTDB-843
>                 URL: https://issues.apache.org/jira/browse/IOTDB-843
>             Project: Apache IoTDB
>          Issue Type: New Feature
>            Reporter: Haonan Hou
>            Priority: Major
>
> As many other DBs, we should support String with specified maximum length as 
> a new data type. This type of string data can be managed by array pool and 
> easy to control the memory cost. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to