Process datafeed in one MySql table and output to another MySql table

S

Sam

I have a datafeed which is constantly sent to a MySql table. The table grows constantly as the data feeds in. I would like to write a python script which process the data in this table and output the processed data to anothertable in another MySql database in real-time.

Which are the python libraries which are suitable for this purpose? Are there any useful sample code or project on the web that I can use as reference? Thank you.
 
D

Denis McMahon

I have a datafeed which is constantly sent to a MySql table ...
Which are the python libraries which are suitable for this purpose? Are
there any useful sample code or project on the web that I can use as
reference?

Did you search for mysql on the python docs website, or perhaps try
googling "python mysql"?
 
J

Jason Friedman

I have a datafeed which is constantly sent to a MySql table. The table
grows constantly as the data feeds in. I would like to write a python
script which process the data in this table and output the processed data
to another table in another MySql database in real-time.

Which are the python libraries which are suitable for this purpose? Are
there any useful sample code or project on the web that I can use as
reference? Thank you.

Is there a reason you do not want to move these rows with a mysql command?
drop table if exists temp;
insert into temp select * from source where ...;
insert into target select * from temp;
delete from source where id in (select id from temp);
 
S

Sam

Did you search for mysql on the python docs website, or perhaps try

googling "python mysql"?

I did. There were documentation but I was hoping to have more sample code. Preferably a similar project which I can use as reference.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top