E
E
Enniack2016-02-22 21:12:23
PHP
Enniack, 2016-02-22 21:12:23

How to properly store data in a database?

There is IM. I manually create a shopping cart and purchase history.
What is the best way to store records?
Make your own table for the basket and for the history, add all the data there, then display by user_id? Won't all this work slowly over time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dim Boy, 2016-02-22
@twix007

Unless there will be 100500 billion data that are written / read through the "bone" request!

V
Vladislav Yandimirkin, 2016-02-22
@vlaad360

Search by user_id, if it is of course in the index format, it will be quite fast, the only cant, do not display all the information at once

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question