...
Postgresql, since a long time, has implemented geospatial features.
See this reference Using Postgres for Spatial Data.
select * from events where ra_min < ra and ra < ra_max and dec_min < dec and dec < dec_max
The response time is around 1. second. On 100 queries the average number of events found is 50.
...