J
J
jackyodd2013-11-29 16:42:52
Database
jackyodd, 2013-11-29 16:42:52

How do you ensure that the column size in the database is consistent with the text input field at the UI level?

After all, 99% of all written applications are forms for entering data into the database - Web or Vin, of which there are a lot of - from the "Name", "Address" series, etc.
The application grows and there are hundreds of thousands of millions of such fields.
Who does what to get a guarantee that all user input will fit 100% into the columns reserved for them in the database?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
P
Pavel Osadchuk, 2013-11-30
@xakpc

I keep 3 domains (static types) in Firebird
D_CODE (varchar 64)
D_STRING (varchar 512)
D_TEXT (blob sub_type text)
there are simply no other string lengths.
When stored on disk, they are compressed by the cunning algorithms of Firebird itself (RLE compression)
. Only the contents of the line are in memory on the client.
Validators are all standard
win-win

S
s0ci0pat, 2013-11-29
@s0ci0pat

No way to get. Business has new requirements, it is necessary to expand the structure.

E
Eugene Mosyukov, 2013-11-29
@GeneMoss

Appropriate setting of validators at the model level.

P
Puma Thailand, 2014-12-17
@opium

To be honest, until this morning I didn’t know that there is a rating on the toaster, I’m even afraid to ask why do you need it?

S
smanioso, 2014-12-17
@smanioso

Ivan : Rating-drocher, karma-drocher - let's already give up our childhood habits of labels. Replace "Ivan" with the Surname-Name, put in the signature not a pretentious reference to a well-known film, but something not "such ...". Weak?
The toaster is another plus on the resume. A person can link to a tag (let's say #github) instead of answering stupid questions "what is a commit?", "how often do you commit?". It is quite logical that people want to receive a certain "profit" for the content that they fill the site with. And likes can be left for social networks with cats ...
Maxim Karakulov : that is, the optimal strategy for playing on this site is not to give the best answers, but to give out content that users like? OK...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question