A
A
Artem00712017-07-08 09:20:11
PHP
Artem0071, 2017-07-08 09:20:11

On what to implement work with a DB?

Good afternoon!
There is a project in which 10,000 users.
This project has certain points.
You need to enter another assessment in the form of points.
In general, we will have the following structure:
- points
- points
points - a certain system, that is, as an administrator, I set it myself (well, I didn’t just take it and set it, but following certain instructions)
points - a self-determining system, if you can call it that :) For each entry into the system, a person is given 10 points, if he does not enter, then 5 points are taken. Points can be transferred to other users.
Then you can exchange points for points, but here the difficult begins
Points - a certain amount, for example 100'000 points in the system
Points - varies from users, for example now there are 75'500'000 of them in the system
Total it will turn out that for 1 point = points / points = 75 points
Now the database is mysql, the server runs on pure php. It seems that everything is working well for now.
But I'm afraid that after the introduction of points, everything will collapse, because you need to calculate this rate of points / points every second.
Now the database structure is extremely simple
in the user table there are 2 fields (of course there are more of them, but I write what relates to the question ) - id and number of points
and now I will add another table with points
In general, can this all work normally in php and mskle? Or is there something else to explore?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question