--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/401bccef-6227-4a70-8e75-1b34461eae33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
![]() | Oren Eini CEO / Hibernating Rhinos LTD
|
Collection delete is implemented via deleting each document.We cannot really do a drop, because:* We need to generate revisions* We need to generate tombstone** This is important for replication, indexing, etcSee the discussion here:About how to read the I/O map.What kind of machine are you using?
On Wed, Jun 12, 2019 at 12:47 PM Johannes Rudolph <jrud...@meshcloud.io> wrote:
We're continuing our quest for performance using RavenDB 4.2. We have a scenario that requires us to delete a large collection (about 20 GiB in size, 4.75 Mio Documents) after a migration.--In production settings, this collection may be even larger.Unfortunately, we see very slow performance deleting the collection, approx 2.4k doc/second. It appears as though RavenDB is deleting each document individually. Questions:1) is there a faster way to delete whole collection (i.e. "drop collection" without tombstones etc., analogous to a "drop table" in SQL)?2) 2.4k docs/s seems kind of slow for deleting documents from the simplest query ("from $collection") - is this an expected performance number?The DB is running on an i7-8700 with SSD storage. I have attached a screenshot of the I/O stats, it appears to me that there are considerable gaps between journal writes / data flushes.
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/401bccef-6227-4a70-8e75-1b34461eae33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/bc4b1437-d413-4b35-98aa-b53647c49f02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/59699c9e-b0df-4eb3-a4da-ac033de61ae8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Oren,
Yes this is already happening in a separate database and we use ETL to bring over the records we want to compare from the main database.
Are you saying it may be better to ‘drop’ the whole database and ETL the products from the main database every day? I assume though this puts the load onto the main database every morning to push the 4M products over?
We will try the performance of delete in RavenDB 4.0. I guess given we do this once per day, we can kick off the delete well in advance so that it is completely before we start the process the next day.
Cheers,
Ian
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/ravendb/rWEdEAhxHls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/CAF0G-Zgt59QZwYkTSh3mVNW3N8TWLX5749LG5ch_1UMOQkgkow%40mail.gmail.com.