Skip to content

Missing indexes to speed up large installations #7474

Closed

Description

@butonic

Moving this here so we don't forget them:

   create index oc_group_user_uid on oc_group_user(uid);
   create index oc_share_file_target on oc_share(file_target);

EDIT: Those are no longer needed:

   create index oc_filepath on oc_filecache(storage,size);
   create index oc_files_versions_user on oc_files_versions(user);
   create index oc_files_trashsize_user on oc_files_trashsize(user);

Would be awesome if someone chould verify that they are actually helpful.

Activity

  1. added this to the milestone on Feb 28, 2014
  2. ser72 commented on Mar 25, 2014

    @ser72

    @butonic I have a user who entered the above for Postgresql and is monitoring.

    Note, the last 2 they get the following error:

    owncloud=# create index files_versions_user on files_versions(user);
    ERROR: functions in index expression must be marked IMMUTABLE
    owncloud=# create index files_trashsize_user on files_trashsize(user);
    ERROR: functions in index expression must be marked IMMUTABLE

  3. tessus commented on Apr 16, 2014

    @tessus

    That's because postgres thinks that user is a function
    Quote the column name accordingly.

  4. MorrisJobke commented on Jun 9, 2014

    @MorrisJobke
    Contributor

    @butonic State of this?

  5. modified the milestones: , on Jun 20, 2014
  6. 10 remaining items

  7. carlaschroder commented on Jun 15, 2015

    @carlaschroder

    Well I asked multiple times for an update on this issue and didn't get an answer, so if you think that's funny enjoy a good laugh.

  8. butonic commented on Jun 15, 2015

    @butonic
    ContributorAuthor

    well, if indexes are missing it is a bug. nothing else. users should not be forced to find missing indexas in the documentation ...

  9. DeepDiver1975 commented on Jun 15, 2015

    @DeepDiver1975
    Contributor

    well, if indexes are missing it is a bug. nothing else. users should not be forced to find missing indexas in the documentation ...

    thanks for repeating my sentences 🙊 PR are welcome

  10. added this to the milestone on Jun 15, 2015
  11. MorrisJobke commented on Jul 8, 2015

    @MorrisJobke
    Contributor

    create index oc_filepath on oc_filecache(storage,size);

    a339855

  12. MorrisJobke commented on Jul 8, 2015

    @MorrisJobke
    Contributor

    create index oc_files_trashsize_user on oc_files_trashsize(user);

    6fcd135

  13. MorrisJobke commented on Jul 8, 2015

    @MorrisJobke
    Contributor

    create index oc_files_versions_user on oc_files_versions(user);

    7ad0fee

  14. self-assigned this
    on Jul 8, 2015
  15. MorrisJobke commented on Jul 8, 2015

    @MorrisJobke
    Contributor

    I added the remaining indexes in #17498

  16. removed their assignment
    on Oct 5, 2015
  17. locked as resolved and limited conversation to collaborators on Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions