Method and apparatus for implementing segmented arrays in a database
AssigneeOracle Corporation
InventorsAmit Jasuja, Roger Taranto, Juan Loaiza, Gianfranco Putzolu
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle Corporation
InventorsAmit Jasuja, Roger Taranto, Juan Loaiza, Gianfranco Putzolu
Estimating the term…
A method and apparatus for implementing segmented arrays in a database system. According to one embodiment of the invention, rather than allocating a contiguous block of memory for each array, the memory for storing at least selected arrays is broken into smaller pieces of memory referred to herein as memory segments. When the memory for an array is broken into memory segments, the array is referred to herein as a "segmented array." Each memory segment associated with a segmented array is divided into one or more memory areas, each of which represent an element of that array. The memory segments associated with a segmented array need not be contiguous. According to another aspect of the invention, the number of segments allocated for a segmented array can be increased or decreased during execution. According to yet another aspect of the invention, only some of the memory segments required to store a segmented array are initially allocated. The remainder of the memory segments required to store the array are allocated on an as needed basis. According to another aspect of the invention, database systems may implement all or only some arrays as segmented arrays. In a database system that supports both segmented and contiguous arrays, whether the memory for a particular array is segmented or contiguous can depend on any number of factors.
A method for allocating memory in a database system, said method comprising the computer-implemented steps of:
A method for accessing data stored in a first element of an array, said method comprising the computer implemented steps of:
A method for allocating memory in a database system, said method comprising the computer implemented steps of:
Dependencies are inferred from the claim text.