payload 2 + aws document db problem

default discord avatar
mateusz_solecki
2 weeks ago
3
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
    Payload Team
    2 weeks ago

    Hey @mateusz_solecki, 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_solecki
    2 weeks ago

    Perfect



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



    @tylandavis

  • discord user avatar
    tylandavis
    Payload Team
    4 days ago

    @mateusz_solecki have you added

    disableIndexHints: true

    to your mongoose adapter config?

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.