saada logo

 
  SAADA OVERVIEW
Home  
News  
Tutos and Links  
Download  
  Tutorial
Getting started  
Doing More  
SaadaQL  
The Web Interface  
VO Publishing  
Tips & Troubelshooting  
  COMMUNITY
Mailing List  
Saada Sites  
How to Contact us ?  
  DEVELOPER CORNER
Contributors  
Next Step  
Old Releases  
Inside Saada  
Using UWS  

 

SourceForge.net Logo


HOME ART > DEVELOPER CORNER > Inside Saada
Query by position

Comparison of various queries doing searches by position on a large collection (43000000 entries)




 Algo components
-  [B] : A basic box surrounding the cone : pos_ra BETWEEN ra-size, AND ra+size)and pos_dec BETWEEN dec-size AND dec+size. Poles are not taken in account : This box cannot be used for DEC > 85 or DEC < -85.
- [D] : Computation of distance between the entry and the cone center
- [Q] : Use of QBoxes (includes a distance computation for QBoxes on the cone edge.

 The query has been tested at position 17:46:32.86-29:03:34.9 for 3 cone radius. The postmaster is setup with 200Mb of shared buffers. The source density is about 2500 per qbox in this area.

radius Num. of QBoxes Entries found [B] + [D] [B] + [Q] [Q]
100’ 1441 1000000 (JDBC setup) 93" 136" 220"
50’ 379 1000000 (JDBC setup 30" 62" 63"
25’ 107 427765 8.6" 9.3" 9.1"
10’ 27 75000 4.3" 5.6" 2.8"

It appears that Qboxes are efficient for small cones but not for larger cones. The limit is around 100 QBoxes. The reason is that the Saada query engine uses QBox as a column. Therefore, queries on large cones contain a lot of OR operator which is painfull for the SQL engine.

last update 2016-05-25