silverstripe / silverstripe/developer-docs
Include more information about optimising ORM performance
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 7
- Forks
- 74
- Avg merge
- 1d 14m
- Merged PRs (30d)
- 6
Description
https://github.com/silverstripe/developer-docs/pull/201 adds a new section about ORM performance. It doesn't have much in it right now, but there's probably a lot that we can include in here.
Examples:
- using
PartialMatchfilters makes indexes effectively useless for that column in that query - so for things like searching for pages in the CMS site tree, swapping to useExactMatchon title only and adding an index on title will make that query way faster - dnadesign/silverstripe-elemental overrides how sitetree search works and adds a super un-optimised
filterByCallback()to that query (though its debatable whether elemental docs should be part of the main docs)
We should seek feedback from the community about what they're doing to improve performance of the ORM specifically and include good examples in the ORM performance section (pssst if you're reading this and have any suggestions of what we could add, please add a comment below).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading pull request 201 and its new ORM performance section. Review the listed PartialMatch, ExactMatch, indexing, and filterByCallback examples, then seek community feedback for additional ORM performance practices. Done means the section contains useful, vetted examples and clearly addresses the agreed scope, including whether Elemental documentation belongs there.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend, documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100