1. A method comprising: initiating, by a central processing unit (CPU) comprising one or more physical processor cores, each of the one or more physical processor cores comprising a plurality of logical cores configured to share resources of a respective one of the one or more physical processor cores, forming part of a computing device, execution of code associated with a plurality of database objects used by a message-passing worker thread of a first logical core of a first physical processor core of the one or more physical processor cores, the CPU having an associated cache split into a plurality of cache slices, each cache slice comprising a portion of the cache associated with the CPU, wherein a second logical core of the first physical processor core supports a job worker thread that implements procedural code; selectively allocating the plurality of cache slices to the plurality of database objects, the selectively allocating comprising a cache slice allocation algorithm assigning one or more exclusive cache slices of the plurality of cache slices to a database object of the plurality of database objects that is in need of exclusive cache slice access and also assigning one or more shared cache slices of the plurality of cache slices to the database object; activating the one or more exclusive cache slices assigned by the cache slice allocation algorithm to be exclusive to the database object such that the database object exclusively uses the one or more exclusive cache slices, which are not available for use by any other database object of the plurality database objects, the activating of the exclusive cache slice comprising causing the exclusive cache slice to cache data for one or more operations by the message-passing worker thread on the database object; and activating the one or more shared slices assigned by the cache slice allocation algorithm to be shared by the database object such that the database object shares or is configured to share the one more shared slices with one or more other database objects of the plurality of database objects to cache data for additional operations by the message-passing worker thread and the job worker thread.