Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Temporally store array in Mysql

So initially I had created a global (I know xd), array where I stored around 600 ~25 chars strings. The array for sure wont get bigger than that. So my question is how to store temporally such an array in Mysql.

I would have used VARCHAR(255) and store it as a string but due to the size I cant. I also though of JSON type, but, at least for me, didn't seem good. Now what am thinking of doing now is;

Since I know that each element in the array will be unique, create a table with 1 column, store them there in many rows, and when done delete the table.

Is that a good/efficient approach or perhaps am missing something out

edit: I forgot to add that the reason i have to store the array, is cause I will need it for a few days and so I cant afford to lose the data in case of a script fail, therefore storing.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!