Skip to content
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

BUG | SQL> Uneven duplicated rows in pyfunceble_whois_record #405

Open
spirillen opened this issue Nov 20, 2024 · 1 comment
Open

BUG | SQL> Uneven duplicated rows in pyfunceble_whois_record #405

spirillen opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels

Comments

@spirillen
Copy link
Contributor

What is the problem you are experiencing?

AS I was working on a way to merge my pyfunceble_whois_record across my test- servers MariaDB and the whois.csv I stumbles on the following case, where their are about half a million duplicated domain (pyfunceble_whois_record.subject) but not a hole lot of other data.

id subject expiration_date epoch idna_subject created_at modified_at registrar
206108 zzztube.com 04-nov-2024 1730678400 zzztube.com 2023-10-16 22:56:07.000 2023-10-16 22:56:07.000 Danesco Trading Ltd.
zzztube.com 04-nov-2021 1635980400 zzztube.com
zzztube.com 04-nov-2021 1635980400 zzztube.com

This problem makes it very hard to combine|concat two tables

How can we reproduce the problem?

Use PyFunceble with --database-type mariadb

Do you have a screenshot?

No response

What did you expect to happen?

Would expect a clean database where any pyfunceble_whois_record.subject are only listed once, and existing records are updated in full.

Is there a workaround?

A lot of manual labor cleaning up the table.

How did you configure PyFunceble?

Doesn't matter

Which Operating System did you use?

Ubuntu 24.04 LTS, Unix or *BSD like OS

Which Python Version did you use?

No response

Which PyFunceble Version did you use?

4.3.0a9.dev

Additional context

As mentioned other places... it's time to have a merge tool to collectively build a central WHOIS DB, this includes reading in the whois.csv to any DB and visa versa (export)

Touches:

@spirillen
Copy link
Contributor Author

spirillen commented Nov 20, 2024

Now I've got this issue as well, each whois query are generating a new entry AND do not lookup in the database an using existing records...

pyfunceble --database-type mariadb --whois-lookup-only -d 0-0-----------------------------------------------------------0.com

image

image

All this, while the other DB server where the subject have an id, there the records only appears once

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants