Re: How to sync multiple functions / routines in parallel

2011-04-29 Thread Bob Sneidar
Lock all the databases first, then update them. I'm pretty sure all SQL databases have the ability to lock tables. In mySQL the sequel is: LOCK TABLES tbl_name [[AS] alias] lock_type [, tbl_name [[AS] alias] lock_type ] ... lock_type: READ [LOCAL] | [LOW_PRIORITY] WRITE UNLOCK TABLE

Re: How to sync multiple functions / routines in parallel

2011-04-29 Thread Nonsanity
So you have data in memory that is constantly being updated, and need to save the data to several databases periodically. But when you save to each database in sequence, the data could be updated in between them, causing the databases to be out-of-sync. So what you could do is snapshot the data in

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread Dick Kriesel
On 4/23/11 2:11 PM, "Glen Bojsza" wrote: > Good thoughts on approaches... I am starting down the rabbit hole! > > thanks Once down in the hole, you can run a second database, feed it the transaction stream ten seconds delayed, pause the stream while you execute queries with time-consistent resu

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread Glen Bojsza
Good thoughts on approaches... I am starting down the rabbit hole! thanks On Sat, Apr 23, 2011 at 1:26 PM, Mike Bonner wrote: > There is probably a way to do what you want directly with a single select > but i'm a beginner to middlin of all trades, master of none. Have another > silly idea at

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread Mike Bonner
There is probably a way to do what you want directly with a single select but i'm a beginner to middlin of all trades, master of none. Have another silly idea at the bottom, but heres more on the current questions. I think as long as you put a semicolon between queries, and don't put a trailing s

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread Glen Bojsza
gt; > I don't know if this is true or not...any database or rev support people > > out there? > > -Original Message- > > From: Andre Garzia > > Sender: use-livecode-boun...@lists.runrev.com > > Date: Sat, 23 Apr 2011 12:36:22 > > To: How to use LiveCo

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread Mike Bonner
unrev.com > Date: Sat, 23 Apr 2011 12:36:22 > To: How to use LiveCode > Reply-To: How to use LiveCode > Subject: Re: How to sync multiple functions / routines in parallel > > Glen, > > Doing parallel queries will not work from LiveCode since RevExecuteSQL and > friends are

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread gbojsza
sync multiple functions / routines in parallel Glen, Doing parallel queries will not work from LiveCode since RevExecuteSQL and friends are blocking I think. Your first query will block the engine until it returns right? Andre On Sat, Apr 23, 2011 at 12:12 PM, Glen Bojsza wrote: > Hello, >

Re: How to sync multiple functions / routines in parallel

2011-04-23 Thread Andre Garzia
Glen, Doing parallel queries will not work from LiveCode since RevExecuteSQL and friends are blocking I think. Your first query will block the engine until it returns right? Andre On Sat, Apr 23, 2011 at 12:12 PM, Glen Bojsza wrote: > Hello, > > I have a database which I have created several q

How to sync multiple functions / routines in parallel

2011-04-23 Thread Glen Bojsza
Hello, I have a database which I have created several queries for doing archival reports. Now I would like to have all the queries update the reports automatically every 10 seconds. >From what I determined I will need to keep the database connections open while the application is running but I c