I want to know which way is better to model TDE with MarkLogic.
We have XML documents with many different DateTime fields. Most of the time (99.99%), the timestamp part is of no biz use. I guess the remaining 0.01% use case is for data problem investigation like when this happened.
TDE is neat and easy to expose document data to external BI tools via ODBC. All the columnar-type of modem BI tools (Power BI) prefer separating the Date and Timestamp fields from one single Datetime field. That will improve the BI tool performance significantly.
There are two options to do that.
Create two different fields in TDE from the same field. See the below screenshot. Most of the time, use Date type TDE field only.
Create only one DateTime field in TDE and use type casting in OPTICS API or SQL (ML version of favour)
Which way is better?