Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-1266

SHOW TIMESERIES will only display 2000 timeseries

    XMLWordPrintableJSON

Details

    Description

      The BUG is in the applyShowTimeseriesLimitOffset method. If there are 10000 timeseries data, when first time go in this method, and the default limit is 1000, offset is 0, showTimeSeriesResults will only return 1000 timeseries. For the reason that 10000 > 1000(limit+offset), so it will do the second iteration. And now offset is set to 1000. Once the offset != 0, it will do plan.setOffset(0) and plan.setLimit(0). So for the second iteration, after return 1000 timeseries from showTimeSeriesResults, it will end.

      In my opinion, it is useless for the applyShowTimeseriesLimitOffset method... If the default limit is 1000, it means that if we have 10000 timeseries, we have to do 10 times iterations, and each iteration we need to fetch the timeseries data from all the servers.

      I think there are two ways, one is to keep this applyShowTimeseriesLimitOffset method and fix the plan.setOffset(0)(I am confused what why we have to set it 0), the other is remove applyShowTimeseriesLimitOffset because I think it is useless...

      Any idea here?

      Attachments

        Issue Links

          Activity

            People

              yifuzhou Yifu Zhou
              yifuzhou Yifu Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: