Here are small effective hints on how you can improve the processing of your ADQL queries:
- Include constraint(s) on a position with the ADQL geometries (e.g.
CONTAINS
, CIRCLE
, POINT
)
- Include constraint(s) on Healpix indices at level 6, 7, 8 or 9 with the function
ivo_healpix_index(...)
(see examples on the side)
- Avoid
SELECT *
; 152 columns for DR3 is really a lot of data to fetch from the database... it takes space and time. You can check the columns for each table below.
- Try to use indexed columns as much as possible and put a constraint on these alone (i.e. not inside a complex math. expression)
- In the case of Gaia DR3, use the
gaiadr3.gaia_source_lite
table, as it contains less columns being a lightweight version of gaiadr3.gaia_source