My question was by way of getting some initial feedback about rfm's
memory consumption. Our application would suddenly terminate, and I
finally determined that it was because of excess memory use. The
application basically copies data from FM into MySQL. The real memory
use of the application gets to over 800MB by the time it's finished.
Firstly, I wouldn't have thought that the source FM database had that
much data in it. Second, I would've thought that after one FM table
was imported, its memory would be available for the next part of the
import. Instead, it seems like memory consumption just keeps going up.
I should stress that I don't know whether the problem is with rfm,
ActiveRecord, ruby, or anything else. I did observe memory use go up
as the result of reading the contents of one FM table, so I thought I
would start there.
> If I could ask, what was your expectation for memory usage for 40,000
> records?
The task that loads the 40,000 ZIP codes actually consumes 500MB.
Tomorrow, I will look into whether a single ZIP code record could
indeed contain 12,500 bytes, but it sure doesn't seem likely!
> Any other libs you use that have similar functionality that
> we can compare to rfm?
I could set up a test, reading the same information into Rails via
ActiveRecord, I suppose.
> Also, are you using lardawge-rfm or rfm?
This is your fork. I've inherited this project, and I must say that
I'm very glad to have this bridge to FileMaker available!
///ark
> As a follow up, I am seeing some abnormal memory usage and slowdown on
> a script I use to test rfm when developing. As stated earlier, I am
> looking into ways to solve a bunch of issues within the code where an
> object gets stored in a variable within multiple objects. Not sure if
> this is the problem but I suspect it may contribute to it. I also
> think that the way the xml response from filemaker is getting parsed
> may contribute to it as well. Basically I have been working on a
> complete rebuild of the API as well as internals of rfm. I may release
> it as a new gem entirely and leave Rfm alone... Railsfm? Oooh, I like
> the sound of that.
Haha! Let me know if you need a beta tester.
///ark
> Will do. I should be close to something usable in a few days. Let me
> know what you think of the API:
>
> http://gist.github.com/422704
>
That looks great - much more Railsy.
> Some stuff like retrieving all the script names and layout names will
> be left out. I never use them and until I can get a good reason why I
> would need them they will be left out.
We actually do get all layout names on occasion, to refresh our
memories. We don't touch the FM side very often, so we forget.
> It assumes you have access to
> the filemaker db. My main purpose is 1) Make it rails friendly. 2)
> Shuttle info back and forth as quickly as possible. 3) Use whatever
> xml parser you want.
>
> Suggestions welcome.
Other than that, sounds excellent.
Just to comment on the new direction of RFM... or RailsFM. More Railsy
is great, however it is important to us that RFM is independent of
Rails. We use RFM just as much without Rails as we use it with Rails.
I haven't looked at the new api yet, so maybe this is a non-issue?
--
You received this message because you are subscribed to the Google Groups "RFM Community" group.
To post to this group, send email to rfmcom...@googlegroups.com.
To unsubscribe from this group, send email to rfmcommunity...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rfmcommunity?hl=en.
Yes, that sounds great.
> It would make the API Rails 3 only though. So that may be a deal
> killer for you.
It doesn't have to be, though. Rfm is working fine for people the way
it is. And unless something really weird happens, Rails 3+ is going to
be used a lot more than Rails 2 as time goes on.
///ark