add bulk operations: create, update, delete; and find_or_create + count methods for single records
In recent project I faced the issue of performance, and found in AriTable api bulk operation: here is my proposal implementation of them for airrecord gem.
Table#bulk_createTable#bulk_updateTable#bulk_delete
and additional helper for record finding
Table#find_or_createTable#count
link to API documentation
Thanks for your work. I don't know if this gem is still watched/maintained. It looks like it's not. Anyway, if I manage to make it work on my project, I'll definitely integrate your work too!
It's come up a couple times already: https://github.com/sirupsen/airrecord/pull/84 https://github.com/sirupsen/airrecord/pull/91
I'm not strictly opposed to adding batch operations, but it needs testing and documentation, (would also be nice to have some information on how much performance you gain with this approach so people know when it makes sense to use it).
Both mentioned PR came with tests. The first one was left unaddressed for months. The second one was closed due to increased complexity.
Also, I don't get this point:
would also be nice to have some information on how much performance you gain with this approach so people know when it makes sense to use it
Airtable API offers bulk operations. Why not support it in Airrecord?
Regarding performances and when to use it, that sounds like an Airtable concern, not an Airrecord. Plus, how come one would have to justify how running multiple requests is worst than running a bigger one?
What am I missing?
I don't think you're missing anything -- some combination of those two PRs that includes tests and documentation would probably be pretty good! Neither PR on its own was ready to merge, nor is this one.