Skip to content

Can I use Quirrel to clean data and add to DB? #841

Answered by Skn0tt
spidertwin2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @spidertwin2! That's a good question :) I think it depends on the nature of these .csv files. If they're not huge, meaning they can be parsed, preprocessed, and pushed into postgres in a couple of seconds, I don't immediately see the need for a background process / tasks / ...

If the files are big enough that that's not possible, then Quirrel could be a good part of the solution. Here's how it could work:

  1. User uploads CSV.
  2. A "task ID" is generated.
  3. CSV is stored into some database, accessible under the task ID
  4. A job with that task ID is enqueued into Quirrel.

You could then obtain a list of "what tasks are pending" using Quirrel.get().

One thing you'll need to think about is your exe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spidertwin2
Comment options

Answer selected by spidertwin2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants