Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Estimate the number of GaiaXPy queries to the Archive (GACS) #106

Closed
druzm opened this issue May 10, 2024 · 1 comment
Closed

Estimate the number of GaiaXPy queries to the Archive (GACS) #106

druzm opened this issue May 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request internal task Tasks generated by the GaiaXPy team

Comments

@druzm
Copy link
Member

druzm commented May 10, 2024

It's been discussed internally that having the ability to estimate the number of queries to the Archive (GACS) launched from within GaiaXPy would be desirable.

GaiaXPy interacts with the Archive in two different ways, via a lists of sources, and via ADQL queries. It's been concluded that marking the queries launched from a list of sources is not possible with the existing Astroquery API, but marking the ADQL queries can be done by adding a comment to the queries themselves. This would allow to at least gather some partial statistics.

The suggestion is to use the following in ADQL queries:

SELECT source_id
FROM gaiadr3.gaia_source
WHERE
-- This query was launched from within GaiaXPy
parallax IS NOT NULL
AND random_index <= 100

The package version could be added to the message as well.

@druzm druzm added enhancement New feature or request internal task Tasks generated by the GaiaXPy team labels May 10, 2024
@druzm druzm self-assigned this May 10, 2024
@druzm
Copy link
Member Author

druzm commented Jun 12, 2024

Fixed by #107

@druzm druzm closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal task Tasks generated by the GaiaXPy team
Projects
None yet
Development

No branches or pull requests

1 participant