-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set Statiques optional values to a default #327
Conversation
08d069a
to
2c65aa6
Compare
It's well-known that it's way faster! See for reference: https://pythonspeed.com/articles/best-file-format-for-pandas/
2c65aa6
to
30417ce
Compare
30417ce
to
bdc078b
Compare
The importation process may create many duplicates as the upsert technique we use does not compare rows with missing fields. Two tables are mostly concerned: Operateur and Amenageur. Hence we decided to fill optional (non filled) fields with default generic strings (e.g. "NA").
bdc078b
to
1b85926
Compare
Current benchmark
Comparison with the latest previous benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree to have the default value as proposed:
- DEFAULT_CHAR_VALUE: str = "NA"
- DEFAULT_EMAIL_ADDRESS: str = "[email protected]"
- DEFAULT_PHONE_NUMBER: FrenchPhoneNumber =
- FrenchPhoneNumber("+33.123456789")
- DEFAULT_SIREN_NUMBER: str = "123456789"
This solution is acceptable because these fields are optional but if these fields become mandatory, the default values will have to be removed.
Yes, we do agree on this! |
Purpose
The importation process may create many duplicates as the upsert technique we use does not compare rows with missing fields. Two tables are mostly concerned: Operateur and Amenageur. Hence we decided to fill optional (non filled) fields with default generic strings (e.g. "NA").
Proposal
Statique
modelStatique
model defaults