|
|
|
|
|
by berkes
1550 days ago
|
|
> Not as simple if you are using any "advanced" PG feature. If those "advanced" features leak into your domain, you have tight coupling, dependencies and poor testability (the latter is screaming that you have the first problems above all). If anything, such advanced features are best tucked away behind abstractions. SuperMarketProjection {
CompanyList: GetAllWithinTravelTime(Time)
Company: GetOne(id)
Boolean: Write(Company)
}
This "projection" can use postgis, may store data in json columns, might have advanced materialized views adjoined on read, and so on. For the adapter, (edit: for the user of the adapter) it matters not.Which has only benefits. And one tradeoff: it requires carefull design and thought, which requires information that you often lack at time of designing. |
|