Despite all the effort I put into BlogML export, there’s still one glaring issue. I can’t export haacked.com because it takes too long and times out.
At this point, it seems like I need to have the export run on a separate threadpool thread and store the exported file somewhere. This seems like the right way to implement such a long running task anyways. The import/export UI would then have to show a list of exports and allow the user to delete exports.
There are 2 options that I can think of that would work in medium trust.
1. Write the export file to App_Data.
a. Pros: Easy to implement. Fast to download.
b. Cons: Anyone who knows the URL would be able to access it.
2. Write the export file to a Text field in the database
a. Pros: No need to write to the file system. Better security as we’d only allow downloading from the Admin section.
b. Cons: Slower to download as we would have to stream it from the DB.
I’m leaning towards #2. To keep it simple for this iteration, we could only allow 1 export per blog at a time. Thus when you start a new export, we delete the old one. That way we can tell you when it’s done.
We should have email notification if email is set up properly. When the export is done, you’ll see a link to it on the import/export page. That would link to a controller action which streams the database column as a FileResult.
Anyone interested in helping to take this on?
Phil
--
You received this message because you are subscribed to the Google Groups "Subtext" group.
To post to this group, send email to sub...@googlegroups.com.
To unsubscribe from this group, send email to subtext+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/subtext?hl=en.
On second thought, I’ll do the simplest thing that’ll work for this upcoming release and save the scope creep for the next release.
Phil
Not a bad idea.