0

arrays or database?

When should I use an array and a database? as both are for storing data. Thank you

13th Feb 2019, 1:29 AM
Joshephpm
Joshephpm - avatar
1 Antwort
+ 4
the answers a bit confusing to some. database table is a permanent structure, stored on the disk of the computer (or server in the case of a web application). You never really use arrays "instead of" a database. ... A pretty common scenario is to load a set of objects from a database into an array or array-like structure, and work on that array. Arrays are temp and live in memory mostly, until saved to files databases real storage
13th Feb 2019, 1:41 AM
peter
peter - avatar