So lets say my script always connects to the MySQL database at beginning of script.
Now, what would be faster to obtain data?
a) Selecting all data from a table with 20 entries
or
b) fopen-ing a file and fread-ing it (both binary; 80 chars); also 20 entries.
Now, what would be faster to obtain data?
a) Selecting all data from a table with 20 entries
or
b) fopen-ing a file and fread-ing it (both binary; 80 chars); also 20 entries.
Comment