You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/09/18 02:45:39 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #1798: Optimize the load performance for large file

morningman commented on a change in pull request #1798: Optimize the load performance for large file
URL: https://github.com/apache/incubator-doris/pull/1798#discussion_r325461964
 
 

 ##########
 File path: be/src/olap/delta_writer.cpp
 ##########
 @@ -132,8 +142,10 @@ OLAPStatus DeltaWriter::init() {
 
     _tablet_schema = &(_tablet->tablet_schema());
     _schema = new Schema(*_tablet_schema);
-    _mem_table = new MemTable(_schema, _tablet_schema, _req.slots,
-                              _req.tuple_desc, _tablet->keys_type());
+    _mem_table = std::make_shared<MemTable>(_tablet->tablet_id(), _schema, _tablet_schema, _req.slots, _req.tuple_desc, _tablet->keys_type());
+
+    _flush_queue_idx = _flush_executor->get_queue_idx(_tablet->data_dir()->path_hash());
 
 Review comment:
   Because for now, each DeltaWriter must only push memtables to the same queue.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org