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

Larger numbers of datasets associated with showcase increase load time dramatically #49

Open
mattfullerton opened this issue Jul 24, 2017 · 0 comments

Comments

@mattfullerton
Copy link

We experience ca. 1 extra second per dataset on uncached showcase pages. The "problem" lies here:
https://github.com/ckan/ckanext-showcase/blob/master/ckanext/showcase/logic/action/get.py#L81

I've spent a while playing with the table modelling around here:
https://github.com/ckan/ckanext-showcase/blob/master/ckanext/showcase/model/__init__.py#L96

to try and make use of the foreign key to the package table so that we can grab the package details (we need name and title for the showcase read template) and not just the IDs so that the for loop of calls to package_show can be removed, but my sqlalchemy skills aren't up to it. Would this be an easy change for someone more experienced?

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

1 participant