16
Views
4
Comments
Solved
What Is Typecast in aggregates that is In Best Practices  And How Can I avoid It ?!
Service Studio Version
11.54.33 (Build 62940)

I have been reading Web Reactive Best Practices and Its Mentions typecasts

But I don't have any idea how we can apply Typecast in aggregates

Could Anyone Explain It To Me With an Example and Why to Avoid It ?!

Solution

Hi Mohamed,


Similar post is available, click here

Hope it helps.


Solution

Hi Mohamed Wasfy,
Sometimes as per our logic, we need to convert our existing data (like DatetimetoDate(), Integertotext(), etc) in the aggregate itself.

This type of practice is called typecasting, we need to avoid it because while getting data it will put more effort into getting converted data.


Regards,

Champion
Solution

Hi,

First what is typecast : As mentioned by others conversion of data type from one to another.  Like Integer to Text etc.

How you can do in Aggregate : In aggregate you can add new column and in that column you can do type casting (data type conversion). 

Why you should avoid it : It takes extra processing so impact the performance and also may lead to exceptions. Like trying to convert a text value to Integer. It will work until we have numbers in text but if there is any other characters it will throw an exception.

regards

Solution

Hi Mohamed,


Similar post is available, click here

Hope it helps.


Solution

Hi Mohamed Wasfy,
Sometimes as per our logic, we need to convert our existing data (like DatetimetoDate(), Integertotext(), etc) in the aggregate itself.

This type of practice is called typecasting, we need to avoid it because while getting data it will put more effort into getting converted data.


Regards,

Champion
Solution

Hi,

First what is typecast : As mentioned by others conversion of data type from one to another.  Like Integer to Text etc.

How you can do in Aggregate : In aggregate you can add new column and in that column you can do type casting (data type conversion). 

Why you should avoid it : It takes extra processing so impact the performance and also may lead to exceptions. Like trying to convert a text value to Integer. It will work until we have numbers in text but if there is any other characters it will throw an exception.

regards

Thank you Gentlemen For That Great Explanation.❤️❤️❤️


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.