estately / rets

A pure-ruby library for fetching data from RETS servers
https://github.com/estately/rets
127 stars 94 forks source link

filter rets metadata #120

Closed hfaulds closed 9 years ago

hfaulds commented 9 years ago

Needs some tests but is safe to merge in terms of not affecting any existing functionality because it's all behind an option.

hfaulds commented 9 years ago

The rationale for this PR is that we don't use a lot of the metadata we fetch but we cache it. In some mlses this cached metadata is so large it's causing us problems.

dougcole commented 9 years ago

I have reservations about this approach - it adds a decent amount of complexity and some really weird edge cases when coupled with any sort of caching. I'd prefer to break the metadata into cacheable chunks by resource or something like that.