nick_hamlin
04/05/2021, 2:45 PMjuan_sebastian_suarez_valencia
04/05/2021, 3:07 PMnick_hamlin
04/05/2021, 3:17 PMnick_hamlin
04/05/2021, 4:09 PM--select flag for a scheduled job in the same way one can from the command line? https://meltano.com/docs/command-line-interface.html#schedule says that I can do that when I’m running manual-one-offs, but what if I want to schedule certain tables in a tap to be updated hourly and others to be updated nightly, for example?aaronsteers
04/05/2021, 6:31 PMDoes the database need to be postgres? Could I use mysql instead?I have not using MySQL so I’m honestly not 100% sure. I think all operations are backed by SQLAlchemy, so in theory this could work. I just don’t know if there are any compatibility issues which would become an issue.
What’s the best way to initialize the new metadata store?Is there a reason not to allow Meltano to auto-create the database on demand? We actually have some users who run meltano without a backend. After each run, they export state explicitly so the database can be spun down, and then they send in the state file again on the next invocation.
is it possible to use theWhen scheduling with Airflow (the default scheduler), I believe this would just require modifying the respective jobs in the Airflow dag. Hope this helps, @nick_hamlin!flag for a scheduled job in the same way one can from the command line?--select
nick_hamlin
04/05/2021, 6:54 PMpostgres with mysql-pymysql in the connection string - specifying a modern mysql driver is important, otherwise it’ll default to MySQLdb, which doesn’t play nice with python 3).
My preference would also be to let Meltano auto-create the database, which is what I assumed it would do when I updated $DATABASE_URI to point to the new database. It didn’t seem to do anything though, which is why I wasn’t sure if I needed some kind of init command to get it to kick things off again. Couldn’t find anything in the docs, but I suspect this probably existsnick_hamlin
04/05/2021, 6:57 PMaaronsteers
04/05/2021, 8:40 PMMy preference would also be to let Meltano auto-create the database, which is what I assumed it would do when I updated@nick_hamlin - Totally random, but this might be related to what you are looking for: https://meltano.slack.com/archives/C01TCRBBJD7/p1617646393244900?thread_ts=1617639532.243200&cid=C01TCRBBJD7to point to the new database. It didn’t seem to do anything though, which is why I wasn’t sure if I needed some kind of init command to get it to kick things off again. Couldn’t find anything in the docs, but I suspect this probably exists$DATABASE_URI
nick_hamlin
04/05/2021, 8:41 PMaaronsteers
04/05/2021, 8:42 PMmeltano schema create <SCHEMA> <ROLES> command as a start.nick_hamlin
04/05/2021, 9:01 PM