LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  February 2015

QSERV-L February 2015

Subject:

Re: data set for large scale test

From:

Kian-Tat Lim <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Thu, 26 Feb 2015 16:09:38 -0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (37 lines)

> I think we're on the same page. The general case is truly expensive:
> loading arbitrary child table rows requires lookups on the director
> table. We can certainly batch this, but again, if child table rows
> come in an arbitrary order, and don't have the one-to-many
> (object<->forcedsource) relationship, it's really expensive.

> and we'll just have a note in the usage guide for completely
> different data domains that, hey, sort your input by the director's
> key column or your ingest performance could be terrible.

	First, you can remove redundant queries by only querying once
for each objectId.  This can be done either by caching the results or by
pre-sorting the child table rows by objectId or by just pre-scanning the
child table rows and accumulating a list of distinct objectIds.  (The
partitioner should be allowed to do whatever is necessary to the input
data, including reading it multiple times; if we're streaming the data
in, it could be allowed to store a copy on disk.)

	Second, you can reduce the total number of queries by batching
multiple objectIds into the same query -- "SELECT ra, decl FROM
secondaryIndex WHERE objectId IN (..., ..., ...)" or its equivalent if
you're using a non-SQL index.

	As you say, for the LSST use cases with up to 1000 child table
entries per director table entry, this can reduce the number of queries
by several orders of magnitude.  But even for arbitrary inputs I think
you can still reduce the queries by one or two orders of magnitude.

-- 
Kian-Tat Lim, LSST Data Management, [log in to unmask]

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use