3 ms·
Does this really read in an entire xml file of all your posts for every request, just to redirect? Seems inefficient. I think redis might be a good fit for this
by benatkin 15y ago
Does this really read in an entire xml file of all your posts for every request, just to redirect? Seems inefficient. I think redis might be a good fit for this.
- makethetick 15y agoIt is pretty inefficient but I didn't have masses of posts to migrate so it made sense. If this were anything more than a quick and dirty script then a data store would be the best approach, maybe sqlite.