How do I get the row number on import using queue reading? #3447
-
I am importing an excel file into a database table which is a cache to do some complex validation. My import class implements the ToModel, WithChunkReading, ShouldQueue interfaces. In the How can this be implemented without additional queries to the database with a selection of already imported rows?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Do a number increment in a cache store like file, redis, ... |
Beta Was this translation helpful? Give feedback.
-
Although this solution is not very reliable. If the cache is flushed during the execution of work, I will receive incorrect data. It would be nice if the library had a method that allows you to get the number of the line being processed. |
Beta Was this translation helpful? Give feedback.
Do a number increment in a cache store like file, redis, ...