Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Primary key field type
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
Primary key field type
Is there more efficient field type for UUID primary key then varchar(25), for nuBuilder 4.5 and MariaDB database?
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 446 times
- Contact:
Re: Primary key field type
What do you mean by more efficient/what do you want to achieve? You can use an auto increment pk but do not use it with subforms.
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
Re: Primary key field type
I am starting development of new project in PowerDesigner for nuBuilder and MariaDb. Since it is better to make careful selection of possible solutions during the project design, rather then in the coding phase, I am considering data types for primary keys.
Subforms are limited to 1000 rows, by design, so speed and size may be insignificant feature in those circumstances. On the other hand, a subform can work with a much larger tables, if the number of records is limited by sql, then even this statement does not stand. While researching on the Internet, I came across recommendations that the mysql primary key should never be kept in varchar fields. In this moment I have not any special demand in focus, just attempting to define general guidelines for the project.
Subforms are limited to 1000 rows, by design, so speed and size may be insignificant feature in those circumstances. On the other hand, a subform can work with a much larger tables, if the number of records is limited by sql, then even this statement does not stand. While researching on the Internet, I came across recommendations that the mysql primary key should never be kept in varchar fields. In this moment I have not any special demand in focus, just attempting to define general guidelines for the project.