Skip to content

Is there a way to disable built-in indexes? #1033

Description

@mcfarljw

If I recall correctly when using python it's possible to specify which properties use the built-in index. Is this something that is or will be possible with the node interface when saving?

Activity

  1. stephenplusplus commented on Dec 20, 2015

    @stephenplusplus
    Contributor
  2. pcostell commented on Dec 21, 2015

    @pcostell
    Contributor

    No this is not possible (yet!). This isn't possible in python either. In python if you specify indexed=False this disables the property in all the indexes, not just the built in indexes.

    You can get the same results using the excludeFromIndexes property. Just remember that this also prevents any composite index entries that use that property from being saved for that entity.

  3. mcfarljw commented on Dec 21, 2015

    @mcfarljw
    ContributorAuthor

    Ah right, I guess what I really meant was the ability to disable the built-in indexing on certain properties across all the entities in a kind. But based on your response this sounds like it is planned.

  4. pcostell commented on Dec 21, 2015

    @pcostell
    Contributor

    Yes, it is not possible but we are hoping to provide this functionality in the future.

    To clarify -- this isn't possible in Datastore on GAE either. If you specify indexed=False in your model definition it just applies this to all entities created from that point onward. It doesn't retroactively change indexing information.

    Since this is a Datastore feature request (and not specific to gcloud-node), I've opened a new issue here: googleapis/google-cloud-datastore#83.

  5. added a commit that references this issue on Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions