A small example of this pattern, if someone else needs it too:
[{"id":"39707832.e4efe8","type":"batch","z":"17cef33a.d6d7bd","name":"","mode":"interval","count":10,"overlap":0,"interval":"5","allowEmptySequence":false,"topics":[],"x":690,"y":340,"wires":[["d413bb3b.64f998"]]},{"id":"3f7f0ade.84fa56","type":"inject","z":"17cef33a.d6d7bd","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":500,"y":340,"wires":[["39707832.e4efe8"]]},{"id":"494a6509.c6ce1c","type":"join","z":"17cef33a.d6d7bd","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1070,"y":340,"wires":[["be73f92c.8107e8"]]},{"id":"d413bb3b.64f998","type":"function","z":"17cef33a.d6d7bd","name":"create point","func":"let point = {\n timestamp: Date.now(),\n measurement: 'measurement',\n tags: {\n foo: 'bar'\n },\n fields: {\n value: msg.payload\n }\n};\n\nmsg.payload = point;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":870,"y":340,"wires":[["494a6509.c6ce1c"]]},{"id":"be73f92c.8107e8","type":"influxdb batch","z":"17cef33a.d6d7bd","influxdb":"266bb20f.6a81ee","precision":"ms","retentionPolicy":"","name":"","x":1330,"y":340,"wires":[]},{"id":"a2212189.549de","type":"catch","z":"17cef33a.d6d7bd","name":"","scope":["be73f92c.8107e8"],"x":890,"y":440,"wires":[["47c463fc.1974ec"]]},{"id":"47c463fc.1974ec","type":"json","z":"17cef33a.d6d7bd","name":"","property":"payload","action":"","pretty":false,"x":1050,"y":440,"wires":[["ebe307ae.0af588"]]},{"id":"ebe307ae.0af588","type":"file","z":"17cef33a.d6d7bd","name":"","filename":"influx.dat","appendNewline":true,"createDir":false,"overwriteFile":"false","x":1200,"y":440,"wires":[[]]},{"id":"266bb20f.6a81ee","type":"influxdb","z":"","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"localhost","name":"","usetls":false,"tls":""}]
This works quite well for other storage nodes as well (mysql, mssql, ...).