Files
mataba/shop/docs/ADR/001-no-custom-tables-v1.md
T

18 lines
656 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ADR 001 – No Custom Tables in v1
**Status**: Accepted
## Context
Wishlist/compare/Q&A/banners could use custom tables for performance. Customs add migration/upgrade burden and risk for a commercial theme sold on RTL-Theme where host environments vary.
## Decision
Store all v1 data in WP primitives: CPT (`xshop_banner`, `xshop_qa`), `wp_usermeta` + cookies for wishlist/compare, single option `xshop_settings`. No custom tables.
## Consequences
- Simpler install/uninstall, no `dbDelta` fragility.
- Query performance acceptable at ≤100k products; revisit if profiling shows bottleneck.
- Future ADR can introduce tables with migration path.