Menu

Creating table under Incident to solve row size too large problem

Pornsawan
2024-02-14
2024-02-20
  • Pornsawan

    Pornsawan - 2024-02-14

    Hello,
    I'm trying to add a lot of fields to the Incident class, but I got mysql error saying that the row size was too large.
    So, I want to know if creating more tables will solve this problem? and is there any doc explain about creating table and saving data into 2 tables?

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-02-14

    Just curious - how many fields are you trying to add, and what kind of attributes? Lots of AttributeBlob or AttributeText fields or something, or case logs?

    Not sure if an extra table (join) will help you or if you'll run into the same (MySQL) limitation.

     
  • Pornsawan

    Pornsawan - 2024-02-14

    I'm trying to add like 115 fields including
    77 AttributeString
    15 AttributeDateTime
    17 AttributeEnum
    6 AttributeEnumSet

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-02-14

    115 fields?!

    What kind of info are you all trying to add here to this one object?

    This will make your environment quite slow in the end...

    There's no way to optimize your data model? E.g. use typology instead of strings? Work with linked classes?

     
    • Keerati

      Keerati - 2024-02-20

      Hi, Jeffrey

      Do you have any advice? How many fields should not be added so as not to affect performance?

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2024-02-20

        Depends a lot on your infrastructure as well, so there's no straight-forward answer.

        Use common sense to see if it's a value that's being re-used; and if you implement it as some sort of "typology" or enum value perhaps.

         
  • Pornsawan

    Pornsawan - 2024-02-14

    linked classes? something like creating another class under Incident, right? If yes, I'm trying to do it but still find the way to show the fields in the Incident page.

     
    • Jeffrey Bostoen

      Jeffrey Bostoen - 2024-02-14

      Take a look at the "AttributeExternalField" info (works in combination with AttributeExternalKey)

       
      • Pornsawan

        Pornsawan - 2024-02-14

        I'm gonna try it. Thank you so much Jeffrey!

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.