https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27421

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from David Cook <[email protected]> ---
> (In reply to Thomas Klausner from comment #0)
> > * Is it neccessary to get the job-size before starting it? If yes, then I
> > assume I'll have to first parse the MARC file to get the job size, throwing
> > the results away (and this might not work, because we want to do the parsing
> > in the background in the first place). Or is there an easy way to get the
> > number of records?
> 
> I had the same problem with bug 27344. If it get too complicated (or cause
> perf issues) I'd say we can consider we are processing 1 file and so its
> size would be 1 :)
> At least for a first step.
> 

I'd say use a job size of 1 since it's 1 file. As you say, Thomas, I think that
it's unreasonable to parse the MARC file just to get the number of records. I
think that "tools/stage-marc-import.pl" should just be responsible for
uploading the file, enqueuing the background job, and then either
showing/referring to a job management view to review the results.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to