0

Is it possible to do bulk inserts and/or update with Couchbase Ottoman? I am trying to build a script that imports my data from a MySQL database, and I would rather not import each model one at a time.

theMayer
  • 15,456
  • 7
  • 58
  • 90
Julio Garcia
  • 1,904
  • 16
  • 26
  • Is there any reason you just don't write up a simple program in C# or Java to do it? Would take less than an hour. – theMayer Mar 08 '16 at 00:26
  • I am writing the backend server with node and Ottoman has actually a very nice abstraction. I am trying to reduce the number of platform used on my projects, since it gets very hard for new developers to come in, if they have to know more than three or four frameworks/programming languages. – Julio Garcia Mar 10 '16 at 13:18

1 Answers1

0

Is it possible to get more context on your models, and how you're loading from mysql? There is currently no bulk method for saving. While not ideal, if you're populating models based on a query from mysql, it should be possible within the same scope to iterate through and save them within couchbase. If you can provide more information, I'd be happy to help.

Thanks

Todd

  • Thanks Todd, this is actually how I ended up doing it. I was just hoping there was some kind of bulk operations, which would be more efficient, but since there are none, and this is not something that is going to run frequently I guess it should be good enough. – Julio Garcia Mar 10 '16 at 13:21
  • have you find any option for bulk insert or update in couchbase by ottoman? – Nitin Aug 09 '19 at 05:07