The data is sourced externally, and arrives weekly via RSS feed, as XML. I am not sure at this time whether it is pushed to us or whether we have to go and fetch it.
If you are interested it is a schedule of all films (movies to you
) showing in the UK for that week. The app is "simply
" a "what’s on near me" query. It’s been done many times before on the web but never with MODx, I bet!
Initially I was looking at pure XSL queries and transforms but, as the file is so large, my first attempts took so long to process that I decided to do a relatively simple transform to SQL and load it into the database. Once there I can perform my query quite quickly, using indexes, and retrieve the data in a much simpler XML document, more suited to our needs. Then I can (hopefully) transform this to screen, newsfeed, and mobile format.
Having learned a bit more about XSLT I may go back and see if I can’t improve on my original attempt, however the database solution is so simple it will be hard to beat.
I had the thought earlier that I might try this database load external to MODx. I will give this a go tomorrow, as it’s getting quite late here.
Thanks.