Is there any documentation for the max length of CallerInfo fields in the CallLog api?

  • 1
  • Question
  • Updated 2 years ago
  • (Edited)
I am writing a searchable indexing engine for calls from the call log. In setting up the database structure, I want to ensure I am using database fields that are long enough to support the data, but also short enough to be efficient if my app is processing millions of these records in a single search. I don't see any documentation for max lengths of the 4 key fields I am indexing (Name, Number, XNumber, and Location):!#MessageStoreCallerInfo

Is there any documentation of the max length of these fields from RingCentral? If not, is there a recommended length to use?
Photo of Matt Spinks

Matt Spinks

  • 626 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 9,828 Points 5k badge 2x thumb
The documentation says phone number is in format.

If you are not facing performance issues at the moment, why not just reserve more spaces for them? For example, 128 for name, 256 for location...etc.  I think it is OK to truncate them if they are abnormally long.