carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CARBONDATA-268) CarbonOptimizer has performance problem
Date Fri, 23 Sep 2016 10:36:20 GMT

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

ASF GitHub Bot commented on CARBONDATA-268:
-------------------------------------------

Github user gvramana commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/190#discussion_r80220071
  
    --- Diff: integration/spark/src/main/scala/org/apache/spark/sql/optimizer/CarbonOptimizer.scala
---
    @@ -68,9 +70,50 @@ object CarbonOptimizer {
      */
     class ResolveCarbonFunctions(relations: Seq[CarbonDecoderRelation])
       extends Rule[LogicalPlan] with PredicateHelper {
    -
    +  val LOGGER = LogServiceFactory.getLogService(this.getClass.getName)
       def apply(plan: LogicalPlan): LogicalPlan = {
    -    transformCarbonPlan(plan, relations)
    +    if (relations.nonEmpty && !isOptimized(plan)) {
    +      LOGGER.info("Starting to optimize plan")
    +      val startTime = System.currentTimeMillis
    +      val result = transformCarbonPlan(plan, relations)
    +      LOGGER.info("Time taken to optimize plan: " + ( System.currentTimeMillis - startTime))
    --- End diff --
    
    add this to STATISTICS logger type


> CarbonOptimizer has performance problem
> ---------------------------------------
>
>                 Key: CARBONDATA-268
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-268
>             Project: CarbonData
>          Issue Type: Bug
>    Affects Versions: 0.1.0-incubating
>            Reporter: QiangCai
>
> 1. invoke relation lookup many times 
> 2. lookup list many times



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

Mime
View raw message