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

Enhance Spree store #2257

Open
channainfo opened this issue Jan 13, 2025 · 0 comments
Open

Enhance Spree store #2257

channainfo opened this issue Jan 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@channainfo
Copy link
Owner

currently, the following query is triggered ( before_action)

SELECT "spree_stores".*
FROM "spree_stores"
WHERE "spree_stores"."deleted_at" IS NULL AND (url like '%api-production.bookme.plus%')
ORDER BY "spree_stores"."created_at" ASC
LIMIT $1

let's optimize:

  • return the like to use an exact match
  • or we can just return the first store.

and we can cache the store.

Using the exact match may not work if we use multiple domains ( images.bookme.plus, static.bookme.plus)

@channainfo channainfo added the enhancement New feature or request label Jan 13, 2025
@channainfo channainfo moved this from 📒 Backlog to 📅 Sprint in Spree CM Commissioner Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📅 Sprint
Development

No branches or pull requests

1 participant