Skip to content

An error occurred with your deployment and 'The upstream server is timing out' #2547

Closed

Description

@0hq

Discussed in #2545

Originally posted by 0hq July 25, 2021
Have a large DB (2.5 M rows) and trying to query by unique id and timestamp.
Any medium request creates An error occurred with your deployment in the SQL editor and 'The upstream server is timing out' from supabase-js.

Seems like a supabase error since query is formatted correctly and the request is what's failing. Queries work fine for other smaller tables.

Activity

  1. kiwicopple commented on Jul 26, 2021

    @kiwicopple
    Member

    Hey @0hq - are you:

    1. trying to return all 2.5M rows at once? That could be an issue for the payload size.
    2. or are you just querying the table to get a smaller set of rows?

    If it's 1, you can add pagination and return a smaller set
    if it's 2, make sure you have indexes set up on your tables.

    create index index_name
    on table_name(id, some_timestamp);
    
  2. 0hq commented on Jul 27, 2021

    @0hq
    Author

    Was just an index issue - wasn't trying to query 2.5 m haha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions