Batch import of users and user attributes
Problem is, I don't see a function with which you can do a batch save of attributes. For example, what I'd like to do is have an array of key/value pairs of attribute names and values, and do something like saveBatch($userInfo, $attrData). I can't find a function in the code which does something like this.
All I can see so far is to manually save each attribute, but that would lead to 1 (user record) + 22 (attributes) * 1250 (rows from excel) = 28750 seperate save queries for 1 import. Not the most efficient course of action for an import which might be done more then 1 time.
Any hints, tips or lines of code in the C5 which I should take a look at?
The Kino plugin seems worthless(?) in terms of importing custom attributes.
Is there any documentation of the database schema so I can build my own import?
If I were trying to do this more efficiently, I suppose I would initialize a user, then export the database (using MySQL backup or the backup function in the Dashboard), then use the SQL to reverse engineer the schema, generate a new .sql file, and import it back through the database. Maybe wrap everything up in a nice mustache template.