Im working with a website that sells very little products. So instead of creating a database that holds all the products, I was just thinking about creating a product configuration application where I hardcode the products and price and description and put them all in a array. Then when the page comes up, just render a table that grabs the array and displays the products that way. Like I said, its not alot of products, possibly 10. Would this be bad for the server ? If this isnt a bad idea, then how far can I push it before I must use a database to store the products instead of a product configuration component.
I figure this wouldnt be a bad idea because Its not alot of products. Besides, when the page is called, then application is ran once and thats it. I figure That wouldnt cause any memory leaks or anything. Possibly a slow down on the loading of the page but nothing big.
What do you guys think, can I use it ?If so, can I use it serve up a good amount of products?