Use node_save() and the APIs
agentrickard - October 9, 2009 - 16:27
| Project: | Joomla to Drupal |
| Version: | 6.x-1.0-alpha3 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Instead of using drupal_write_record, we should really use the built-in Drupal APIs, node_save() most notably. Without them, it is not possible to write extensions mapping thinks like Joomla content to Organic Groups.

#1
I've considered doing this, my main concern is that comments in the original 5 code have indicated that this is too slow for large imports, but I think it's probably important to at least have it as an option. The addition of cron processing in the 6.x version means we have an option to import a configurable amount of new items per run.
Patches welcomed.
#2
For cron run we might use the Job Queue module.
For non-cron runs, are you using the batch API in D6?
I may have time to roll some patches. It might also be interesting to integrate with Migrate module.