-
Notifications
You must be signed in to change notification settings - Fork 63
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
Not useable newspaper migration site #4384
Comments
Can you see what is updated? Process? Project? Batch? |
So far as I can say |
I am guessing that the save action is fired from |
I can only confirm, that this long loading of this page (takes hours on our migration test system) appears only once and later access of this page is more or less fast - at least faster than on first access. But as migration of our data is not done yet I will struggle in this issue after every data migration :-( I discovered that storing the changed value in the method Edit: if a non-null value is needed in |
I assume it was because, when this was implemented, it was first a blob field and these cannot be set by SQL language. So the getter obtains the value from the file management module when it is null, and saves it to the database. But this is an idea, you should can set the field manually in the database, like: UPDATE process SET processBaseUri = CONCAT(id, "/") WHERE processBaseUri IS NULL; Another consideration is whether we should allow the file system check to be switched off via the |
Your suggestion is wrong or not correct as in database only a string representation of the process is stored without the ending slash! Even with the ending slash I don't understand the benefit of storing the process id with an ending slash. Accessing this field from the database has a higher cost then combining this two values in program code - only true if the process id is already available if not costs are similar. Edit start: -INSERT INTO `process` VALUES (134049,'EiseveNa_435567721-17520408',17,'100000000',6,0,3,0,'2015-07-21 14:00:59',5,24,'',1,'INDEX',NULL,1,NULL,NULL,0);
+INSERT INTO `process` VALUES (134049,'EiseveNa_435567721-17520408',17,'100000000',6,0,3,0,'2015-07-21 14:00:59',5,24,'',1,'INDEX','134049',1,NULL,NULL,0); It is visible that after the Edit end Issue is not proving the existing of a file which is working really fast the remaining issue is to update the |
This is what I used to know, too, yes, but I checked my database and on my local system it is stored with an ending slash. I was really surprised to see that this morning, because I also thought it would be stored without slash. The question is, why is there a difference? Are there are more methods that write this entry and generate different values? I have no idea where this comes from. If it is without slash, the database statement to set it is trivial.
I think this needs clarification. When I create a process in version 3, the field is set and it is with slash.
This is good to know, I wasn’t shure about it. |
After digging deeper into this: Reproducibly, when creating a process in version 3, the field On process creation (
|
reopen as still not complete fixed |
Closing as #4421 is now merged and this issue solved. |
If you have a large database with a lot of newspaper processes (over 300,000) and corresponding batches (> 150) using the newspaper migration site is not possible as it takes hours or days to display this page. While loading this page a lot of SELECT statements - which is ok - but even the same amount of UPDATE statements are started. It is for me unclear why UPDATE statements are used / fired on displaying this page.
Displaying the batches tab on the process page takes one or two minutes and is much faster then displaying the nearly same data on the newspaper migration site.
The text was updated successfully, but these errors were encountered: