Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index to orchard system table #8147

Closed
Tommy-yuan opened this issue Dec 11, 2018 · 2 comments
Closed

Add index to orchard system table #8147

Tommy-yuan opened this issue Dec 11, 2018 · 2 comments

Comments

@Tommy-yuan
Copy link

We found that if we are using orchard component such as widgets or users on page, when the page is rendering, multiple sql query will be executed(eg. find certain component in content item record table and content type table, then join content version table to decide whether it's published, etc ), which is very consuming on database if high concurrency occurs . After we have added index on these orchard system tables, the performance is almost five times better than the situation without adding index. So we wonder why orchard CMS don't add index to these system tables when initiate the website, or we are missing some configuration?

@Tommy-yuan Tommy-yuan changed the title add index to orchard system table Add index to orchard system table Dec 11, 2018
@BenedekFarkas
Copy link
Member

We already have an ongoing discussion under #5159. What indices would you recommend adding? There are a few that we added recently btw (IdentityPartRecord.Identity, UserPartRecord.NormalizedUserName, CommonPart(Version)Record date times).

@BenedekFarkas
Copy link
Member

@Tommy-yuan please comment your suggestions, if any, under #5159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants