imay opened a new issue #1752: Create FieldList to reuse filed and schema
URL: https://github.com/apache/incubator-doris/issues/1752
 
 
   Now in our storage engine, we create so many Schema/Field for many purpose. 
I think after a table is created, its Schema and Filed are not modified unless 
there is a schema change. However, schema change for a table is infrequent 
operation, which means that Schema/Field will keep the same most time. So, I 
think we can reuse this Schema/Field to avoid unnecessary object creation and 
deletion.
   
   To achieve this, I will create a FieldList struct and keep it in tablet. 
When tablet's schema is changed, we will create a new FieldList. For safety I 
will store it in shared_ptr, when old is invalidated in tablet, others can 
still use the old one.
   
   And Schema will contain one FiledList to reuse this struct. If only some 
fields are used, then column ids of used columns and FiledList can build Schema.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org
For additional commands, e-mail: dev-h...@doris.apache.org

Reply via email to