Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Merge command accessible via YottaDB's API interface?

42 views
Skip to first unread message

Rob Tweed

unread,
Mar 13, 2024, 2:53:50 PM3/13/24
to Everything MUMPS
We use the YottaDB callin API interface for our mg-dbx-napi interface package.

The callin interface provides native access to all the YottaDB database commands we need/use except for one command: MERGE

Not sure why this is, and of course there are higher-level ways to emulate a merge, but it would be nice if the much higher-performant system-level-implemented MERGE was accessible via the API.

Is there any plan for this to be made possible, and if not, can we put in a request for it please?

Not a show-stopper for us, but it would be a very nice to have sometime.

Sam Habiel

unread,
Mar 13, 2024, 9:46:38 PM3/13/24
to Rob Tweed, Everything MUMPS
Rob,

The issue https://gitlab.com/YottaDB/DB/YDB/-/issues/204 was created 5 years ago. We never prioritized it as important as no customers said they wanted it.

If Chris M wants to code it, we will welcome the contribution. But keep in mind that any changes to YottaDB take a lot of effort... so it won't be a one day job. More like a month or more.

Bhaskar may have some history on who actually requested the original issue.

--Sam

--
You received this message because you are subscribed to the Google Groups "Everything MUMPS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to everythingmum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/everythingmumps/cbaa022f-654f-4faa-8e9b-e836b386eaa7n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

K.S. Bhaskar

unread,
Mar 13, 2024, 10:07:01 PM3/13/24
to Everything MUMPS
I don't remember who requested it originally, so I'll blame my evil twin brother.

We don't have the bandwidth to implement MERGE in the Simple API at this time, but I have two simpler suggestions:

  • Create a small piece of M code that does what you want, and call that from mg-dbx-napi.
  • Code a small C function that calls the underlying ydb_set_s() / ydb_set_st() in a loop. Under the covers, that's basically what the MERGE command does.

Regards
– Bhaskar

Maury Pepper

unread,
Mar 14, 2024, 1:43:20 PM3/14/24
to everyth...@googlegroups.com
My recollection is that the downside of the MERGE command is that it is a single call to the database which can be indeterminately long due to the unknown size of the "from" argument. Thus, depending on implementation, it may cause issues with locks, interrupts, TP, etc.

    -maury-
Reply all
Reply to author
Forward
0 new messages