4
Hello folks good night!
I need to perform several queries of an ID in an X table, but this is overloading my server and the connection with the BD gets off, I contacted my server and informed me that I am trying several requests and so it is offline.
So I wonder if it is possible for me to create a new column and store all the information and forget the relationship between tables.
Since I don’t think I expressed my doubt very well, I’ll leave a flow chart below:
I’ve seen data entered this way but I can’t remember what it is like, if someone can help me with the name of the function or an example, I really appreciate it.
@UPDATE I think I found what you wanted guys, I think it’s json_encode, I’ll see how it works, if it’s not that please tell me.
Here are some basic questions, which are the most important: 1. You have access to
root
server? 2. You have the ability to change themy.cnf
or your database configuration file? 3. Are you using Mysql, which database are you using? Predicting possible answers: If you don’t have accessroot
possibly there is no way to actually fix the problem, as you will not be able to change themy.cnf
, in most cases. "There is no such thing as "BD gets off", only if it is corrupted or damaged (because it actually shuts down). See in Mysql logs the error that displayed.– Inkeliz
What a
json_encode
has to do with the performance of a comic book?– William Aparecido Brandino
Using json_encode I can save the information from the second table in the first, right? According to what I thought doing this would make my database more stable. I don’t know what really happens, when my site goes from 1k online to connection to the database fell.
– Clemes