Here's what I'm trying to do. I'm using ejabberd with mod_logdb. All conversations are logged to a table in the database tagged with the date.
ex: logdb_messages_2010-7-17_server_node
What I'm trying to do is write a search that will look in all these tables without hitting the DB too much. I'd like to create a view that takes all the data in the table so I can just hit that.
Problem is there may be days that have no logs and, of course, days before we started logging.
Is there a way I can somehow use a wildcard to snag these from MySQL? My other other though would be writing a daily cron job to recreate the view I'd need.