[FX.php List] FX ODBC to FM Pro

mattw at netfriends.net mattw at netfriends.net
Wed Mar 29 18:17:18 MST 2006


Hey all,

We have created a python tool that processes files and logs activity to 
a php based web service, backended by FMSA 8.  The python tool is 
multithreaded, so multiple log entries can be inserted simultaneously.

We were using fx and FMSA cwp, and maxed out at 4 log entries per 
second.  I decided to switch to odbc into FMSA to see what performance 
looked like.  WOW.  16 entries per second.  Nice.  Unfortunately, it did 
not work using the fx odbc support.  I got an error from the fmsa odbc 
driver "sql parsing error".  Blech.   It turned out if we tried to use 
ocbc_prepare in php we got the same error.  Somehow the sql gets 
modified by fx and ocbc_prepare in a manner that breaks the odbc driver.
When I used fx, it returned the exception and actually showed the sql 
statement that failed. I cut and pasted the statement into a sql client 
and ran it and it worked fine.  Weird.

Has anyone experienced this? We would love to re-use our code that uses 
cwp and switch to odbc while still using fx, but it is looking iffy. 
Anyone using fx and fmsa odbc?

Matt



Kevin Futter wrote:
> On 30/3/06 6:03 AM, "DC" <dan.cynosure at dbmscan.com> wrote:
> 
> 
>>Yes, the new link does degrade gracefully in the new example I posted -
>>you know, the one after you guys complained about my voiding all over
>>the place. Here, I will post it again. Please, disable your javascript
>>and reload the page with the following code and give it a try... when I
>>have JS on, it goes to file1.php, when i disable JS it goes to
>>file2.php. I consider that degrading gracefully.
> 
> 
> Oddly I didn't pick up on that, but you are of course right.
>  
> 
>>You see that you don't *have to have* a dummy link... your file2.php can
>>actually be a real link - in fact you can go to file1.php in the href if
>>you want and then handle the lack of POST data there.
> 
> 
> Of course, and in fact you should avoid dummy links at every opportunity.
>   
> 
>>Actually, I believe we are still squarely on the topic of...
>>
>>"how to keep your search params intact so that you can pass them from
>>request to request because FX linkPrevious and linkNext are applicable
>>only to GET implementations." (whew, what a mouthful).
>>
> 
> 
> Yes, I guess you're right - I was thinking more strictly about FX and
> FileMaker. I'm surprised no one has mentioned sessions for this purpose.
>  
> 
>>Yes, and if you don't want to bother installing another JS library and
>>tweaking your pages to adapt to the new (notably, cleaner and
>>standard-bearing) JS approach, you can just throw the FORM in with some
>>JS in there to carry POST data around in every link you make that deals
>>with a database.
> 
> 
> Generally I roll my own. I've not really bothered with any of the JS
> libraries doing the rounds at the moment (prototype, mochikit, behaviour et
> al). Mostly because they can be (too) large and unwieldy, but I also kinda
> like the challenge :-)
> 
> Kev
> 
> 


More information about the FX.php_List mailing list