I have a database Postgres
that has been working for a week and the amount of data entered is 3788, this number reflects that id
of my table, they also inform me that this amount is similar per week.
I create id
the following way:
id integer NOT NULL DEFAULT nextval('memoria_id_seq'),
So, what worries me and wanted to know is:
What is the limit of this id?
Is it convenient for me to change the database to extend this id?
Or maybe I would just have to change the data type? What would this data type be?
The field being of type
INT
; has the following characteristicsAlthough you can perfectly occupy
BIGINT
what should concern you in any manager is the quality and logic of your queries to extract data
Below you can see the tables with the data types in both PostgreSQL and MySQL to have a clear idea
Look at this table and check the source (PostgreSQL)
Type of data
What you should check as your system grows are: bandwidth available to the web server, RAM memory, quality of SQL queries, etc etc
In the following table I show you the data lengths for MySQL so you can check that it does not depend on the database manager