Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Index and Metadata optimizations for AR Listing View #70

Merged
merged 11 commits into from
Apr 20, 2018

Conversation

nihadness
Copy link
Contributor

Current behavior before PR

  • Indexers of 'BikaCatalogAnalysisRequestListing' are defined inside 'AnalysisRequest' content class.
  • While listing AR's, in order to get columns regarding Doctor and Patient such as 'DoctorTitle', 'PatientTitle', 'PatientID' and etc., doctor and patient brains are called for each AR which slows down the total rendering time.

Desired behavior after PR is merged

  • Move indexer methods under catalog/indexers
  • Instead of getting values of related fields from the brains, add metadata to the BikaCatalogAnalysisRequestListing and use them directly.
  • Also addes more fields from Health Add-on to the new SearchableText field which was introduced in Slow Searches in Listing Views senaite.core#771

I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@xispa xispa merged commit e11526a into senaite:master Apr 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants