We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34193
    • 330 Posts
    Can I ask/question the logic behind storing Gender as an INT in profiles. 1=Male and 2 = Female.

    I know this saves space within the DB, but means extra processing when saving and retrieving the informtaion. As it is now I have to retrieve the gender and then convert the value into a text based on 1 = Male and 2 = Female. I am happy to do this but feel it makes more sense to store these as Male and Female in a text field instead of INT.

    What are peoples thoughts on this.
      • 28215
      • 4,149 Posts
      Well, they’d more properly be m/f, not Male/Female, for proper translations.

      The 1/2 is legacy from Evo.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com