| CPC G06F 16/2443 (2019.01) [G06F 16/217 (2019.01); G06F 16/2219 (2019.01)] | 24 Claims | 

| 
               1. A method comprising: 
            configuring, in a polyglot database management system (DBMS) that contains a guest language runtime environment, a database buffer that the guest language runtime environment does not manage; 
                invoking, in the polyglot DBMS, logic that is defined in a guest language to retrieve, into the database buffer that the guest language runtime environment does not manage, a value stored in a database in the polyglot DBMS, wherein the logic contains a plurality of database invocations; 
                assigning a color respectively to each database invocation of the plurality of database invocations; and 
                executing, based on the colors of the database invocations, the logic without, after the retrieved value is overwritten in the database buffer, retaining a retained copy of the retrieved value in a memory region that the guest language runtime environment manages. 
               |