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

  • 1
  • Question
  • Updated 1 year 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): https://developer.ringcentral.com/api-docs/latest/index.html#!#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

  • 532 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,722 Points 5k badge 2x thumb
The documentation says phone number is in https://en.wikipedia.org/wiki/E.164 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.