incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eldon Carman <ecarm...@ucr.edu>
Subject Re: Queries to Test Basic Parallelization
Date Tue, 02 Oct 2012 04:00:47 GMT
The queries suggest can be run on the two archives I have attached to
this e-mail. The books example xml is from the W3Schools example
books.xml. I just split each book into its own xml file. The weather
example is from weather.gov individual location current weather
reports.

On Fri, Sep 28, 2012 at 2:52 PM, Eldon Carman <ecarm002@ucr.edu> wrote:
> What do you think about these basic queries to start looking at parallelization?
>
> All Results
> collection("weather")
>
> Aggregation on All Results
> count(collection("weather")/current_observation)
>
> Filtered Results
> collection("weather")/current_observation[temp_f>90]
>
> Aggregation on Filtered Result
> count(collection("weather")/current_observation[temp_f>90])
>
> I think we could come up with a query like the average temperature
> from each state. Although the current weather file does not easily
> support that query. Do you think these are good starting queries?
>
>
> Also found a good FLWOR example from W3Schools. Nice example with
> filtering and ordering.
>
> for $x in doc("books.xml")/bookstore/book
> where $x/price>30
> order by $x/title
> return $x/title

Mime
View raw message