Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

payload 2 + aws document db problem

default discord avatar
mateusz_soleckilast year
5
Cannot use Hint for this Query. Index is multi key index , partial index or sparse index and query is not optimized to use this index.


Anyone have workaround? Do you know if that will be fixed in future?

  • discord user avatar
    tylandavis
    last year

    Hey

    @568552242618171441

    , this issue has been addressed, and should be available in the next release. PR here:

    https://github.com/payloadcms/payload/pull/3997
  • default discord avatar
    mateusz_soleckilast year

    Perfect



    is it included in payload 2.2 ? I still have the same problem after update



    @783701636165402624
  • discord user avatar
    tylandavis
    last year
    @568552242618171441

    have you added

    disableIndexHints: true

    to your mongoose adapter config?

  • default discord avatar
    mateusz_soleckilast year
    @783701636165402624

    thanks man that was the solution

  • discord user avatar
    tylandavis
    last year

    awesome 👍🏽

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.