https://pinot.apache.org/ logo
Join Slack
Powered by
# troubleshooting
  • d

    Damiano

    05/01/2020, 4:12 PM
    do you mean that?
  • d

    Damiano

    05/01/2020, 4:12 PM
    ok
  • k

    Kishore G

    05/01/2020, 4:13 PM
    but my suggestion is to not depend on that but use it as an optimization
  • d

    Damiano

    05/01/2020, 4:13 PM
    yes i can add ordered ...so basically if the documents are for example stock_id, value and i have to group by "stock_id" the order of that group should be correct
  • d

    Damiano

    05/01/2020, 4:14 PM
    hmm ok, so if i should not depend on that is better to not optimize it that way..
  • d

    Damiano

    05/01/2020, 4:15 PM
    @Kishore G for each documents i need to loop on my ranges array, and more sparse are the input data and more ranges i will need to add inside that list...so then for each document i must loop on big range list..
  • d

    Damiano

    05/01/2020, 4:16 PM
    or maybe create something that prevent me looping on ranges, maybe a direct access to the range i need based on key..but i do not know i have to investigate more
  • k

    Kishore G

    05/01/2020, 4:17 PM
    start with a map<key, List<Point>>
  • k

    Kishore G

    05/01/2020, 4:18 PM
    when the size of List get more than T (threshold), optimize it
  • k

    Kishore G

    05/01/2020, 4:18 PM
    or optimize it when the total number of points become more than T
  • d

    Damiano

    05/01/2020, 4:21 PM
    @Kishore G yes i could do that but i do not think there is a way to filter by key no? i mean if with "key" you mean the timestamp how can i then undersatnd the timestamp for the max value and the timestamp for the min value
  • d

    Damiano

    05/01/2020, 4:21 PM
    i must find a way to avoid looping the List or Map
  • k

    Kishore G

    05/01/2020, 4:22 PM
    hmm
  • d

    Damiano

    05/01/2020, 4:22 PM
    let me past a code
  • k

    Kishore G

    05/01/2020, 4:22 PM
    that logic wont work with multiple maxima and minima
  • d

    Damiano

    05/01/2020, 4:22 PM
    see this: https://paste.ofcode.org/6NbViasxWR8Ljj5Qu6AVhu
  • d

    Damiano

    05/01/2020, 4:23 PM
    it is the rough code
  • d

    Damiano

    05/01/2020, 4:23 PM
    it works. It generate the result i expected and it works with completely random points
  • d

    Damiano

    05/01/2020, 4:25 PM
    before adjust that code for Pinot i would like to optimize it, and as i told you more sparse the points are and more Ranges in the list i must to add
  • k

    Kishore G

    05/01/2020, 4:26 PM
    this is a good start but can be simplified
  • d

    Damiano

    05/01/2020, 4:27 PM
    yes i think so
  • d

    Damiano

    05/01/2020, 4:28 PM
    i did test adding 100k random points
  • d

    Damiano

    05/01/2020, 4:28 PM
    i have seend that it creates less or more 28k ranges
  • d

    Damiano

    05/01/2020, 4:28 PM
    huge array
  • d

    Damiano

    05/01/2020, 4:29 PM
    with huge i mean calling it many times takes time
  • k

    Kishore G

    05/01/2020, 4:32 PM
    in PInot, you will be given an array of 5k or 10k
  • d

    Damiano

    05/01/2020, 4:33 PM
    ar eyou talking about segments? segments of 5-10 ?
  • k

    Kishore G

    05/01/2020, 4:33 PM
    lets try it out, we can optimize it later when we find perf issues
  • k

    Kishore G

    05/01/2020, 4:33 PM
    no
  • k

    Kishore G

    05/01/2020, 4:33 PM
    block
1...939495...166Latest