#http request to convex takes more than 2s

3 messages · Page 1 of 1 (latest)

lone breach
#
  1. the request invokes an httpAction
  2. httpAction invokes 1 internal mutation and 1 internal query
  3. the query has a big index, wondering if this is why its taking 2s...2+s is a lot.
  4. this is on a convex starter instance; wondering if pro helps significantly
    return await db
      .query("collection")
      .withIndex(
      "by_one_two_three_four_five_six",
        (q) =>
          q
            .eq("one", oneVal)
            .eq("two", twoVal)
            .eq("three", threeVal)
            .eq("four", fourVal)
            .eq("five", fiveVal)
            .eq("six", sixVal)
      )
      .unique();

humble dragonBOT
#

Thanks for posting in #1088161997662724167.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.

    - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
    - Use [search.convex.dev](https://search.convex.dev) to search Docs, Stack, and Discord all at once.
    - Additionally, you can post your questions in the Convex Community's #1228095053885476985 channel to receive a response from AI.
    - Avoid tagging staff unless specifically instructed.

    Thank you!
summer oasis
#

In the httpAction put some console.log(Date.now()) lines to see what's taking time here