0
arrays or database?
When should I use an array and a database? as both are for storing data. Thank you
1 Respuesta
+ 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