Hi Andrey, I was just scared of running out of space. And maybe couldn´t delete it.
On Monday, April 7, 2014 10:48:44 PM UTC+2, Andrey Lomakin wrote: > > Hi, > Michael is right . > Space is reused. > But why do you ask you can test it without spending a lot of time. > > > On Mon, Apr 7, 2014 at 11:01 PM, Nhat Nguyen > <[email protected]<javascript:> > > wrote: > >> So what happens if i have a partition with like 20gb free space and i >> insert 20gb worth of data (lets say there was no compression). What happens >> if i then delete 2 documents? >> My disc space is still @20gb. >> >> Can i still insert documents now? Will Orient manage the space so that it >> can reuse the space which which became free from the deletion? >> >> Regards, >> Nhat >> >> >> On Monday, April 7, 2014 7:58:05 PM UTC+2, Michael Campbell wrote: >> >>> Sorry, I was unclear. It only means that space deleted from Orient >>> tables is no longer available to the filesystem, but it IS available to >>> Orient. So if you use and un-use 50MB of space, that space will be reused >>> by the database, but it's not available to the filesystem any longer. >>> >>> >>> On Mon, Apr 7, 2014 at 1:09 PM, Nhat Nguyen >>> <[email protected]>wrote: >>> >>>> So that means the space is gone? And i cant re-use it till i have 50 >>>> times 1 mb files to insert? That sounds weird :) . >>>> So if i repeat "insert then delete" the 50 mb byte[] i will end up with >>>> a full harddrive? >>>> >>>> Regards, >>>> Nhat >>>> >>>> >>>> On Monday, April 7, 2014 6:59:35 PM UTC+2, Michael Campbell wrote: >>>> >>>>> Logically deleted space is reused for new items. If you insert and >>>>> delete a 50MB thing, then (in theory) the next 50 1MB things you insert >>>>> will re-use that logically deleted space. I don't necessarily like this, >>>>> but it's the way of most NoSQL DBs. >>>>> >>>>> >>>>> On Mon, Apr 7, 2014 at 12:40 PM, Nhat Nguyen < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> i want to delete previously entered binary[] field entries from a >>>>>> cluster. >>>>>> >>>>>> Inserting 1 binary[] with the size of 50mb which i splitt into chunks >>>>>> via ORecordBytes <https://code.google.com/p/orient/wiki/BinaryData>. >>>>>> Takes 1 second. >>>>>> >>>>>> But when i delete this single binary[] it takes like 0.00025 ms. >>>>>> Great that it does only take such a non existing time, but the downside >>>>>> is >>>>>> that the storage still stays at the same size (database now @50mb). If i >>>>>> repeat this to infinite my harddisc is full. At least thats what i am >>>>>> thinking of. >>>>>> >>>>>> Is there any solution or do i have to execute any command (java api) >>>>>> to tell to reuse the space which is there but empty. >>>>>> >>>>>> The only file in my database that changes is the "default.pcl" it´s >>>>>> size is like growing and growing. Do i have to execute a command so that >>>>>> the <custom-class>.pcl file will grow and shrink? >>>>>> >>>>>> Regards, >>>>>> Nhat >>>>>> >>>>>> -- >>>>>> >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "OrientDB" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "OrientDB" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Best regards, > Andrey Lomakin. > > Orient Technologies > the Company behind OrientDB > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
