Skip to content

Create Index for optimized answer retreival #3932

@dedenbangkit

Description

@dedenbangkit

In order to use projection queries for answers, we need to create the following index:

The suggested index for this query is:

<datastore-index kind="QuestionAnswerStore" ancestor="false" source="manual">
    <property name="questionID" direction="asc"/>
    <property name="surveyInstanceId" direction="asc"/>
    <property name="value" direction="asc"/>
</datastore-index>

See: akvo/akvo-flow-api#244

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions