Git Product home page Git Product logo

Comments (4)

benbjohnson avatar benbjohnson commented on May 22, 2024

@tgruben Yep, I can take a look.

from featurebase.

benbjohnson avatar benbjohnson commented on May 22, 2024

@tgruben Did the previous implementation do a refetch? From what I see in 6822dd9 it does a TopN() to fetch N*2 results from the nodes trims that down to N results.

This is the only change required for N*2: master...benbjohnson:top-n-2

I could see doing a min N of 10 or so just to make sure that small Ns always fetch a large enough resultset.

Here are the lines from the previous implementation I was referencing:

https://github.com/umbel/pilosa/blob/6822dd99b5245195dbe45fbe9cb1718fdfb51a2f/core/topn.go#L174
https://github.com/umbel/pilosa/blob/6822dd99b5245195dbe45fbe9cb1718fdfb51a2f/core/topn.go#L190

from featurebase.

tgruben avatar tgruben commented on May 22, 2024

Yes,but most of the code that does the fill in was located in
core/query.go if you look at TopNPackage and check_pair around line 252

it is basically the results of the first scatter
That TopN package gets the first batch and then the check pair sends out
the requests for the fill in, so it was a little more complicated that just
doubling the request

Does that code make sense or do I need to expand..that one function is
basically the "combine results from all queries part.
(CatQueryStepHandler)

-Todd

On Mon, Feb 29, 2016 at 5:30 PM, Ben Johnson [email protected]
wrote:

@tgruben https://github.com/tgruben Did the previous implementation do
a refetch? From what I see in 6822dd9
6822dd9
it does a TopN() to fetch N*2 results from the nodes trims that down to N
results.

This is the only change required for N*2: master...benbjohnson:top-n-2
master...benbjohnson:top-n-2

I could see doing a min N of 10 or so just to make sure that small Ns
always fetch a large enough resultset.

Here are the lines from the previous implementation I was referencing:

https://github.com/umbel/pilosa/blob/6822dd99b5245195dbe45fbe9cb1718fdfb51a2f/core/topn.go#L174

https://github.com/umbel/pilosa/blob/6822dd99b5245195dbe45fbe9cb1718fdfb51a2f/core/topn.go#L190


Reply to this email directly or view it on GitHub
#57 (comment).

from featurebase.

benbjohnson avatar benbjohnson commented on May 22, 2024

@tgruben Yep, that make sense. I missed that refetching part the first time around. I'll get that added in.

from featurebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.