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  June 2014

QSERV-L June 2014

Subject:

Re: tightening QueryContext (and more?)

From:

"Daniel L. Wang" <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Tue, 3 Jun 2014 14:40:09 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (49 lines)

Jacek,

>   > I just got sick of re-doing the plumbing every time
>   > a new feature needed some statistic or characteristic
>   > that was already derived but sent directly to where
>   > it used to be needed.
>
> I think that is an indication things are not
> compartmentalized correctly yet :)
True, but my point is that we don't really know what a correct 
compartmentalization looks like, and I'm not sure we will, until we're 
feature-complete for query syntax, schema, partitioning, and execution. 
Thanks to xrootd, there are no dependencies on physical chunk 
distribution. I don't mind putting things into bundles as you've done so 
far (but I think containment rather than multiple-inheritance is the 
right approach), but I feel strongly that each plugin should have the 
plumbing to access everything (ok to restrict access through 
friend-declarations, though). This is what allows (in theory) adding 
features by adding plugins, rather than touching all the other parts 
that might care and adding plumbing to connect all of them.

>   > If you can find portions that are really
>> only used by one plugin, we can move it to that plugin
> It is the case for _restrictors, it could easily go into
> the restrictorPlugin, but... testQueryAnalysis is checking
> few things relates to _restrictors, so, how would you
> implement that? We could iterate through the list of plugins
> that QuerySession keeps, find the restrictorPlugin and
> do the calls testQueryAnalysis needs (what is the number
> of restrictors, give me the first restrictor). Is it too ugly?
I think it's too ugly. I could conceive of other plugins needing to know 
about those restrictors, and accessing the plugin itself seems like the 
wrong approach. But maybe we always want a name-based lookup for 
plugins, available only for test programs. And maybe we'll decide to put 
all restrictor-related code in that plugin. I'm not ready to say. I do 
think the open-access plugin approach with its centralized data exchange 
has made query analysis code much easier to write--the data is always in 
one place and you don't have to worry about the other analysis (as 
much). That said, the division of logic in the current plugins may not 
be correct.

-Daniel

########################################################################
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