Is it possible to have unique numbers/letters in one row such that it doesnt reappear in other rows?
Hello! On the screenshot I highlighted where the row unique ID is located. This record will always be unique, because the number increases +1 even when you delete records.
Hi,
I see that but I want to stop recurring serial numbers in different rows and its different to what you have said.
Would you mind elaborating a bit more on what you want to do, itâs a bit unclear? Do you want to have some sort of unique constraint/validation, where you can canât create a row with a certain value if it already exists?
Yes thats pretty much what im going for, if there already exists a cell with ABC there cant be any rows in that column with that same value.
Thatâs currently not possible with Baserow. Itâs called a unique constraint and weâre not going to implement that anytime soon. If we want to implement this feature with the right UX, itâs going to be a lot of work to build it and weâre currently focusing on other features.
Acknowledged. Iâm new around here and happily building away on top of several tables in a database now. It sounds like handling field uniqueness is the province of the application in Baserow world, so Iâll note that and handle as needed. Iâm looking for any general advice on how to approach wanting to use fields other than the id
for row lookups. A couple of reasons that first come to mind:
- It is common in publishing to use âslugâ fields as a primary lookup key even if it isnât the primary key on the table, with the assumption the field is constrained to be unique. You may be familiar that Djangoâs generic views can fetch objects by slug only. A corollary feature to this is allowing any unique field to be used in row lookupsâŚ
- Having the row ID in the URL may not be desirable for several reasons for some sites
Has anyone dealt with maintaining their own unique constraint for Baserow fields?
About a year ago, there was a merge request to implement a unique constraint in Baserow. This one was closed because of the reason I explained above, but maybe it could somehow be of help to you. You can find the changes here: [Unique Columns] add support for unique columns (!272) ¡ Merge requests ¡ Bram Wiepjes / baserow ¡ GitLab.
Just found this old post. It is absurd that this unique column constraints has not been fixed. This is a fundamental aspect of relational databases and Baserow is built on postgres, which offers this out of the box! Just created a new topic about this. Hopefully, Baserow will listen and reopen that feature request.
Yes, this is completely absurd that this âissueâ has not been fixed.
I am saying âissueâ in quote because Baserow team (composed of database specialists) is being deliberately deceptive about this, and rely on user politeness to not pointing it out.
Each table is supposed to have a âprimary fieldâ, which purpose is to âuniquely identify each entryâ or âacts as its unique identifierâ according to their own doc (Primary field). The use of word is obviously meant to remind us of a âprimary keyâ. And then when you ask on this forum how come the feature does not actually performed as advertised, you are told that âWOW this is a NEW FEATURE and not a priority ftm sorryââŚ
If baserow had been upfront about their low-code database app inability to offer custom unique id in order to, I donât know, not duplicate data, I would have chosen another solution.
@jplr8922 this feature is prioritized and in the Baserow roadmap, which means itâs a highly important one. We aim to release it this quarter.