I have doubts regarding data longer than 2 thousand characters in the service studio, will they then be of text or binary type in the SQL server/database? This doubt arises because of these two excerpts highlighted in the text of the link below:
https://success.outsystems.com/documentation/best_practices/performance_and_monitoring/performance_best_practices_data_model/
Hi @Jessica Marques,
In above image here is clearly mentioned on which database if length if less than 2000 characters than what will be datatype in data base and when length is more than 2000 characters what will be datatype in different-2 kind of databases.
Check out my answer on this post if you are confused when we need seprate entity or when not for stroing binary or text (more than 2000 characters).
https://www.outsystems.com/forums/discussion/93306/why-is-this-answer-correct-in-data-model/
Kind regards,
Sanjay Kushwah
Hi @Sanjay Kushwah
Thanks for the answer. Please let me know where I can find this image in the outsystems documentation. Could you share the link?
Best Regards,
Jessica Marques.
Hi Jessica,
Check out here
https://success.outsystems.com/documentation/11/reference/outsystems_language/data/database_reference/database_data_types/
Hope that it helps you
Hi @Alexandre Yip thanks for share.
I'm just curious why this table (for this link) doesn't show MySQL as an image shared by @Sanjay Kushwah
Hello @Jessica Marques,It was in O10 documentation.
Database Data Types - OutSystems 10 Documentation
Thanks,Sanjay Kushwah
Ok.
Thanks! :)
Hi @Jessica Barboza
Your doubts will be clear more. Try to read these similar posts
https://www.outsystems.com/forums/discussion/39802/maximum-size-for-text-data-type/
https://www.outsystems.com/forums/discussion/74094/text-datatype-maximum-character-limit/#:~:text=Regarding%20the%20reason%20for%20the,as%20binaries%20in%20the%20database.
https://www.outsystems.com/forums/discussion/59568/any-limitation-in-the-length-of-text-data-type/
Hope this helps
thanks
Prince
Hi @Prince Aadil Khan Panwar
Actually I'm more confused, because, for example in this post, they say that when it is more than 2000 it will be nvarchar? So now I would like to know if it will be binary, text or Nvarchar?
And how can I see this in practice?
thanks,
Jessica.
As per OS standard - Outsystems Best Practices
Isolate large text and binary data
Avoid the use of 2000+ characters in a text field; data fields greater than 2000 bytes are converted into a Text data type which in turn are much slower to process and decrease performance overall. As a rule, isolate binary and/or large text fields in separate entities and only retrieve them when they are strictly necessary.
Performance Top 10 Rules - OutSystems Best Practices
Thanks,
Amit
Hi @Amit Verma
It was in this documentation that my doubt arose, because first the text, as you mentioned, says that it will be text, but then it states that it will be binary.