You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by James liu <li...@gmail.com> on 2007/06/14 10:31:26 UTC

who use time?

i write script to get run time to sure how to performance.

i find very intresting thing that i query 2 solr box to get data and solr
response show me qtime all zero.

but i find multi get data script use time is 0.046674966812134(it will
change)

solr box in my pc. and index data is very small.

so i don't know why it use much time like 0.046674966812134.






-- 
regards
jl

Re: who use time?

Posted by James liu <li...@gmail.com>.
I use freebsd.



2007/6/16, Yonik Seeley <yo...@apache.org>:
>
> On 6/14/07, James liu <li...@gmail.com> wrote:
> > I just timing my script to get data from 2 solr boxes, not complete
> script.
> > It just query two box and return id,score .rows=10. response type use
> json.
> >
> > and i see their qtime all zero.
> >
> >
> > How many
> > > documents are you retrieving?
> >
> >
> > one:
> > numDocs : 10000
> > maxDoc : 23000
> >
> > the other:
> > numDocs : 9000
> > maxDoc : 9000
> >
> > 3-4k per doc
> >
> > If you re-execute the same exact query again, is it still slower?
> >
> >
> > It will be quick. time will be 0.0043279ms
>
> It's probably the time it takes to retrieve the stored fields from the
> index... perhaps the OS had to go to disk.
>
> -Yonik
>



-- 
regards
jl

Re: who use time?

Posted by Yonik Seeley <yo...@apache.org>.
On 6/14/07, James liu <li...@gmail.com> wrote:
> I just timing my script to get data from 2 solr boxes, not complete script.
> It just query two box and return id,score .rows=10. response type use json.
>
> and i see their qtime all zero.
>
>
> How many
> > documents are you retrieving?
>
>
> one:
> numDocs : 10000
> maxDoc : 23000
>
> the other:
> numDocs : 9000
> maxDoc : 9000
>
> 3-4k per doc
>
> If you re-execute the same exact query again, is it still slower?
>
>
> It will be quick. time will be 0.0043279ms

It's probably the time it takes to retrieve the stored fields from the
index... perhaps the OS had to go to disk.

-Yonik

Re: who use time?

Posted by James liu <li...@gmail.com>.
2007/6/14, Yonik Seeley <yo...@apache.org>:
>
> On 6/14/07, James liu <li...@gmail.com> wrote:
> > i write script to get run time to sure how to performance.
> >
> > i find very intresting thing that i query 2 solr box to get data and
> solr
> > response show me qtime all zero.
> >
> > but i find multi get data script use time is 0.046674966812134(it will
> > change)
>
> If you are timing the complete script there is startup time to take
> into account.
>
> If you are only timing the request/response to solr, then that is a bit
> slow
> considering the query time itself is less than a millisecond.
>
 That
> does not include document retrieval and response writing.


I just timing my script to get data from 2 solr boxes, not complete script.
It just query two box and return id,score .rows=10. response type use json.

and i see their qtime all zero.


How many
> documents are you retrieving?


one:
numDocs : 10000
maxDoc : 23000

the other:
numDocs : 9000
maxDoc : 9000

3-4k per doc

If you re-execute the same exact query again, is it still slower?


It will be quick. time will be 0.0043279ms


-Yonik
>



-- 
regards
jl

Re: who use time?

Posted by Yonik Seeley <yo...@apache.org>.
On 6/14/07, James liu <li...@gmail.com> wrote:
> i write script to get run time to sure how to performance.
>
> i find very intresting thing that i query 2 solr box to get data and solr
> response show me qtime all zero.
>
> but i find multi get data script use time is 0.046674966812134(it will
> change)

If you are timing the complete script there is startup time to take
into account.

If you are only timing the request/response to solr, then that is a bit slow
considering the query time itself is less than a millisecond.  That
does not include document retrieval and response writing.  How many
documents are you retrieving?
If you re-execute the same exact query again, is it still slower?

-Yonik