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 2020/06/29 08:42:32 UTC

[GitHub] [incubator-doris] yangzhg opened a new pull request #3974: Improve performance of unique table read

yangzhg opened a new pull request #3974:
URL: https://github.com/apache/incubator-doris/pull/3974


   Implements #3971 
   the test table as list:
   ```
   mysql> desc test;
   +------------+---------+------+-------+---------+---------+
   | Field      | Type    | Null | Key   | Default | Extra   |
   +------------+---------+------+-------+---------+---------+
   | rid        | BIGINT  | No   | true  | 0       |         |
   | qid        | BIGINT  | No   | true  | 0       |         |
   | qidDeleted | TINYINT | No   | false | 0       | REPLACE |
   | type       | TINYINT | No   | false | 0       | REPLACE |
   | uid        | BIGINT  | No   | false | 0       | REPLACE |
   | toUid      | BIGINT  | No   | false | 0       | REPLACE |
   | status     | INT     | No   | false | 0       | REPLACE |
   | createTime | INT     | No   | false | 0       | REPLACE |
   | source     | INT     | No   | false | 0       | REPLACE |
   | misFlag    | INT     | No   | false | 0       | REPLACE |
   | anonymous  | TINYINT | No   | false | 0       | REPLACE |
   | uv         | TINYINT | No   | false | 1       | REPLACE |
   +------------+---------+------+-------+---------+---------+
   12 rows in set (0.00 sec)
   
   mysql> select count(*) from test;
   +----------+
   | count(*) |
   +----------+
   |  1093760 |
   +----------+
   1 row in set (1.00 sec)
   ```
   There is 29 versions at present
   ![image](https://user-images.githubusercontent.com/9098473/85992244-2aa26c80-ba27-11ea-918a-04701a58dbdf.png)
   I run the query `select sum(uv) from test` for 10 times,
   the average ScanTime reduced from `9s277ms`  to `8s206ms`
   
   9277.2
   --
   
   
   
   
   9277.2
   --
   
   
   


----------------------------------------------------------------
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



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


[GitHub] [incubator-doris] morningman merged pull request #3974: Improve performance of unique table read

Posted by GitBox <gi...@apache.org>.
morningman merged pull request #3974:
URL: https://github.com/apache/incubator-doris/pull/3974


   


----------------------------------------------------------------
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



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