Array vs Enum what's the difference and which one is better performance wise?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AgentT
    Member
    • Aug 2021
    • 77

    Array vs Enum what's the difference and which one is better performance wise?

    These two field types looks very similar, what are the difference between the two?

    If they are same, which one is better in terms of performance?

    Thank You! :-)
  • yuri
    Member
    • Mar 2014
    • 8442

    #2
    The only difference is their appearance. It happen historically that we have two different field types. Even 3, checklist behaves the same in back-end.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #3
      How I see it:

      Enum is a checkbox system, option is "static".

      Array is a list of text line; write anything you want.

      Personally I don't like array too much at the moment because the Search don't work too well with it. I use array field for "Alias and aka (also known as) field".

      For example for Mr John Smith, I might added in "Johnny", or "Johnno"

      Comment


      • AgentT
        AgentT commented
        Editing a comment
        Alias is exactly what I want to use it for.

        Thanks.
    • yuri
      Member
      • Mar 2014
      • 8442

      #4
      The Multi-enum supports custom values as well.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...