Skip to content

Conversation

@chaen
Copy link
Contributor

@chaen chaen commented Oct 10, 2025

No description provided.

@chaen chaen marked this pull request as draft October 10, 2025 14:17
@chrisburr chrisburr marked this pull request as ready for review October 20, 2025 14:12
@chrisburr chrisburr merged commit 2e5e03b into DIRACGrid:main Oct 20, 2025
45 of 46 checks passed
@fstagni
Copy link
Contributor

fstagni commented Oct 20, 2025

What if the DB was already created? Should the partitioning be done by hand?

@chrisburr chrisburr mentioned this pull request Oct 21, 2025
@chrisburr
Copy link
Member

What if the DB was already created? Should the partitioning be done by hand?

DiracX should do it for them. If they already have a large AuthDB (which should only be LHCb) then some more care is needed.

@chrisburr chrisburr deleted the partition_authdb branch October 21, 2025 20:16
@chaen
Copy link
Contributor Author

chaen commented Oct 22, 2025

What if the DB was already created? Should the partitioning be done by hand?

DiracX should do it for them. If they already have a large AuthDB (which should only be LHCb) then some more care is needed.

Not if there is already data in the table. In this case, we print the command to execute.

@fstagni
Copy link
Contributor

fstagni commented Oct 22, 2025

Not if there is already data in the table. In this case, we print the command to execute.

Yes, my question was if the DB is already created AND there's data in it (does is matter how much?).

"we print the command to execute.". Who/what is "we" ?

@chaen
Copy link
Contributor Author

chaen commented Oct 22, 2025

if you have 2 billion rows like LHCb, you want to do it in a bit smarter way than just running the alter schema command. Fortunately, I think it is not the case of anyone :-)
The init-sql job prints that in its output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants