7#include <Lightweight/Lightweight.hpp>
227inline std::ostream& operator<<(std::ostream& os,
LargeDb_User const& value)
229 return os << std::format(
"LargeDb_User {{ id: {}, email: {}, name: {} {} }}",
231 value.email.Value().c_str(),
232 value.first_name.Value().c_str(),
233 value.last_name.Value().c_str());
236inline std::ostream& operator<<(std::ostream& os,
LargeDb_Category const& value)
238 return os << std::format(
"LargeDb_Category {{ id: {}, name: {} }}", value.id.
Value(), value.name.Value().c_str());
241inline std::ostream& operator<<(std::ostream& os,
LargeDb_Product const& value)
243 return os << std::format(
"LargeDb_Product {{ id: {}, sku: {}, name: {} }}",
246 value.name.Value().c_str());
249inline std::ostream& operator<<(std::ostream& os,
LargeDb_Order const& value)
251 return os << std::format(
"LargeDb_Order {{ id: {}, order_number: {}, status: {} }}",
253 value.order_number.Value(),
254 value.status.Value().c_str());
257inline std::ostream& operator<<(std::ostream& os,
LargeDb_Review const& value)
259 return os << std::format(
"LargeDb_Review {{ id: {}, rating: {} }}", value.id.
Value(), value.rating.
Value());
262inline std::ostream& operator<<(std::ostream& os,
LargeDb_Tag const& value)
264 return os << std::format(
"LargeDb_Tag {{ id: {}, name: {} }}", value.id.
Value(), value.name.Value().c_str());
267inline std::ostream& operator<<(std::ostream& os,
LargeDb_Article const& value)
269 return os << std::format(
"LargeDb_Article {{ id: {}, title: {} }}", value.id.
Value(), value.title.Value().c_str());
Represents a one-to-one relationship.
ActivityLog for tracking user actions - high volume table. Estimated: 50,000 rows × 2....
Article entity for blog/content management with large content. Estimated: 500 rows × 37KB = 18....
Category entity. Estimated: 200 rows × 2.5KB = 0.5MB.
OrderItem entity - join between Order and Product with quantity and price. Estimated: 30,...
Order entity with address JSON fields. Estimated: 10,000 rows × 1.5KB = 15MB.
ProductImage entity - main size driver with large binary image data. Estimated: 4,...
ProductTag join table for many-to-many Product<->Tag relationship. Estimated: 6,000 rows × 50B = 300K...
Product entity with large description and specifications JSON. Estimated: 2,000 rows × 12KB = 24MB.
Review entity with content, pros and cons. Estimated: 8,000 rows × 3.5KB = 28MB.
SystemAuditLog for system-level events - standalone high-volume table. Estimated: 5,...
Tag entity for product tagging. Estimated: 500 rows × 350B = 175KB.
User entity with large bio and avatar fields. Estimated: 2,000 rows × 11KB = 22MB.
Represents a single column in a table.
constexpr T const & Value() const noexcept
Returns the value of the field.
Helper class, used to represent a real SQL column names as template arguments.