...
Sample Data are stored in a relational database.
A perl script is run to retrieve events located in a region defined by ra_max, dec_max, ra_min,dec_min
. (typically 2x2 degrees).
The time spent by the query as well as the number of events found is are kept.
The query is launched 100 times, statistics are output.
...
select * from events where position @ box ra_max,dec_max, ra_min,dec_min
A column position
has been added to the table. It is of type point
and stores ra, dec
.
The response time is around 0.7 second.
select * from events where error && box ra_max,dec_max, ra_min,dec_min
A column error
has been added to the table. It is of type box
and stores ra+dg, dec+dg, ra-dg, dec dg
with dg = 1.°
. The operator &&
means overlaps.
The response time is around 0.7 9 second.