# TAP row limits andsync query timeout

**URL:** <https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572>\
**Category:** Support\
**Created:** [November 20, 2024, 6:49pm UTC](https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572 "2024-11-20T18:49:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRead](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/mread/32/2519_2.png) [@MRead](https://www.rubin.community/u/MRead)\
**Post date:** [November 20, 2024, 6:49pm UTC](https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572/1 "2024-11-20T18:49:47Z")

</div>

Hi

Please could someone confirm the RSP’s TAP row limits for results (or possibly rows x columns).

Could someone also confirm the timeout for TAP sync queries is 30 minutes.

It looks like some TAP services provide this under the service.capabilities structure but I couldn’t see them listed there.

Thanks  
Mike

```auto
[<Capability standardID=ivo://ivoa.net/std/VOSI#capabilities>... 0 validationLevels, 1 interfaces ...</Capability>, <Capability standardID=ivo://ivoa.net/std/VOSI#availability>... 0 validationLevels, 1 interfaces ...</Capability>, <Capability standardID=vos://cadc.nrc.ca~vospace/CADC/std/Logging#control-1.0>... 0 validationLevels, 1 interfaces ...</Capability>, <Capability standardID=ivo://ivoa.net/std/VOSI#tables-1.1>... 0 validationLevels, 1 interfaces ...</Capability>, <Capability standardID=ivo://ivoa.net/std/TAP>... 0 validationLevels, 1 interfaces ...</Capability>]

```

---

<div class="post-metadata">

**Author:** ![ChristinaWilliams](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/christinawilliams/32/2227_2.png) [@ChristinaWilliams](https://www.rubin.community/u/ChristinaWilliams)\
**Post date:** [November 22, 2024, 7:57pm UTC](https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572/2 "2024-11-22T19:57:45Z")

</div>

Hi, thanks for your question! TAP queries should be able to handle millions of rows (I found [this documentation](https://dp0-2.lsst.io/data-access-analysis-tools/portal-future-faq.html#is-there-a-maximum-row-limit-for-query-output-in-the-portal) that references a limit of 5 million). But, regarding speed, it is recommended that spatial constraints be included in the search if you are using DP0.2, because those catalog data are sharded by coordinate (RA, Dec). So excluding a spatial search will slow it down a lot. Wondering if you could provide further information on the query you are trying to perform so we can help further (or attach it here)? Thanks!

---

<div class="post-metadata">

**Author:** ![MRead](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/mread/32/2519_2.png) [@MRead](https://www.rubin.community/u/MRead)\
**Post date:** [November 22, 2024, 11:11pm UTC](https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572/3 "2024-11-22T23:11:59Z")

</div>

Thanks again Christina and apologies for not picking that up in the documentation.

Our use case here is mimicking uploading a table of 20 million objectIds and cross matching with a “science” table in qserv. The results here are just over 10 million rows so will need to split things up a little.

Mike

---

<div class="post-metadata">

**Author:** ![ktl](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ktl/32/1373_2.png) [@ktl](https://www.rubin.community/u/ktl)\
**Post date:** [November 23, 2024, 12:30am UTC](https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572/4 "2024-11-23T00:30:35Z")

</div>

There’s also [this information](https://dp0-2.lsst.io/data-access-analysis-tools/api-intro.html#introduction-to-the-rsp-api-aspect) about current Qserv/TAP limitations:

> As for the internal RSP enviroment, the database server will generally be unable to process queries that have an internal intermediate form that is larger than roughly 5GB, and the TAP service will have difficulties with final results that are over roughly 2GB in size. That said, this is by no means the final word on what limits might be in operations.

---

<div class="post-metadata">

**Author:** ![MRead](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/mread/32/2519_2.png) [@MRead](https://www.rubin.community/u/MRead)\
**Post date:** [November 23, 2024, 9:11am UTC](https://www.rubin.community/t/tap-row-limits-andsync-query-timeout/9572/5 "2024-11-23T09:11:09Z")

</div>

Thanks for the extra info.
