diff --git a/code/libraries/koowa/libraries/database/row/abstract.php b/code/libraries/koowa/libraries/database/row/abstract.php
index <HASH>..<HASH> 100644
--- a/code/libraries/koowa/libraries/database/row/abstract.php
+++ b/code/libraries/koowa/libraries/database/row/abstract.php
@@ -95,6 +95,8 @@ abstract class KDatabaseRowAbstract extends KObjectArray implements KDatabaseRow
         // Set the row data
         if (isset($config->data)) {
             $this->setProperties($config->data->toArray(), $this->isNew());
+
+            unset($config->data);
         }
 
         //Set the status message
diff --git a/code/libraries/koowa/libraries/database/rowset/abstract.php b/code/libraries/koowa/libraries/database/rowset/abstract.php
index <HASH>..<HASH> 100644
--- a/code/libraries/koowa/libraries/database/rowset/abstract.php
+++ b/code/libraries/koowa/libraries/database/rowset/abstract.php
@@ -72,6 +72,9 @@ abstract class KDatabaseRowsetAbstract extends KObjectSet implements KDatabaseRo
             foreach($config->data->toArray() as $properties) {
                 $this->create($properties, $config->status);
             }
+
+            // Unset data to save memory
+            unset($config->data);
         }
 
         //Set the status message
re #<I>: Optimize row and rowset creation for memory use