Skip to content

How do I use an index with Filter? #61

@lateefj

Description

@lateefj

I have been trying to figure out how to use an index with the Filter:

rows, err := r.Table(CensusTableName).GetAllByIndex("Name").Filter(map[string]interface{}{"Name": name}).OrderBy(rethink.Desc("Year")).Run(session)

I made sure the index has been created but still there is no performance advantage using an index. Do I have the wrong syntax?

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