Step - shrink_to_fit

shrink_to_fit ยท category: Graph information and files

Releases the spare capacity a graph built by write queries keeps (slots and index room past the data) and returns its memory total before and after (before_bytes, after_bytes, released_bytes; measured false when the storage reports no figures); changes no data.

Forms

shrink_to_fit()

Example

{ g.inject(1).repeat(__.add_v("p")).times(100).iterate(); g.shrink_to_fit().released_bytes > 0 }   // true

See also