Skip to content

Commit

Permalink
Test build for bug fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Irrelon committed Feb 24, 2015
1 parent e5a8452 commit c02a94c
Show file tree
Hide file tree
Showing 10 changed files with 758 additions and 649 deletions.
21 changes: 21 additions & 0 deletions js/dist/fdb-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ Collection.prototype.setData = function (data, options, callback) {
this.rebuildPrimaryKeyIndex(options);
op.time('Rebuild Primary Key Index');

// Rebuild all other indexes
op.time('Rebuild All Other Indexes');
this._rebuildIndexes();
op.time('Rebuild All Other Indexes');

op.time('Resolve chains');
this.chainSend('setData', data, {oldData: oldData});
op.time('Resolve chains');
Expand Down Expand Up @@ -1728,6 +1733,22 @@ Collection.prototype._removeFromIndexes = function (doc) {
}
};

/**
* Rebuild collection indexes.
* @private
*/
Collection.prototype._rebuildIndexes = function () {
var arr = this._indexByName,
arrIndex;

// Remove from other indexes
for (arrIndex in arr) {
if (arr.hasOwnProperty(arrIndex)) {
arr[arrIndex].rebuild();
}
}
};

/**
* Returns the index of the document identified by the passed item's primary key.
* @param {Object} item The item whose primary key should be used to lookup.
Expand Down
221 changes: 111 additions & 110 deletions js/dist/fdb-all.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions js/dist/fdb-core+persist.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ Collection.prototype.setData = function (data, options, callback) {
this.rebuildPrimaryKeyIndex(options);
op.time('Rebuild Primary Key Index');

// Rebuild all other indexes
op.time('Rebuild All Other Indexes');
this._rebuildIndexes();
op.time('Rebuild All Other Indexes');

op.time('Resolve chains');
this.chainSend('setData', data, {oldData: oldData});
op.time('Resolve chains');
Expand Down Expand Up @@ -1462,6 +1467,22 @@ Collection.prototype._removeFromIndexes = function (doc) {
}
};

/**
* Rebuild collection indexes.
* @private
*/
Collection.prototype._rebuildIndexes = function () {
var arr = this._indexByName,
arrIndex;

// Remove from other indexes
for (arrIndex in arr) {
if (arr.hasOwnProperty(arrIndex)) {
arr[arrIndex].rebuild();
}
}
};

/**
* Returns the index of the document identified by the passed item's primary key.
* @param {Object} item The item whose primary key should be used to lookup.
Expand Down
279 changes: 140 additions & 139 deletions js/dist/fdb-core+persist.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions js/dist/fdb-core+views.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ Collection.prototype.setData = function (data, options, callback) {
this.rebuildPrimaryKeyIndex(options);
op.time('Rebuild Primary Key Index');

// Rebuild all other indexes
op.time('Rebuild All Other Indexes');
this._rebuildIndexes();
op.time('Rebuild All Other Indexes');

op.time('Resolve chains');
this.chainSend('setData', data, {oldData: oldData});
op.time('Resolve chains');
Expand Down Expand Up @@ -1722,6 +1727,22 @@ Collection.prototype._removeFromIndexes = function (doc) {
}
};

/**
* Rebuild collection indexes.
* @private
*/
Collection.prototype._rebuildIndexes = function () {
var arr = this._indexByName,
arrIndex;

// Remove from other indexes
for (arrIndex in arr) {
if (arr.hasOwnProperty(arrIndex)) {
arr[arrIndex].rebuild();
}
}
};

/**
* Returns the index of the document identified by the passed item's primary key.
* @param {Object} item The item whose primary key should be used to lookup.
Expand Down
231 changes: 116 additions & 115 deletions js/dist/fdb-core+views.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions js/dist/fdb-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ Collection.prototype.setData = function (data, options, callback) {
this.rebuildPrimaryKeyIndex(options);
op.time('Rebuild Primary Key Index');

// Rebuild all other indexes
op.time('Rebuild All Other Indexes');
this._rebuildIndexes();
op.time('Rebuild All Other Indexes');

op.time('Resolve chains');
this.chainSend('setData', data, {oldData: oldData});
op.time('Resolve chains');
Expand Down Expand Up @@ -1461,6 +1466,22 @@ Collection.prototype._removeFromIndexes = function (doc) {
}
};

/**
* Rebuild collection indexes.
* @private
*/
Collection.prototype._rebuildIndexes = function () {
var arr = this._indexByName,
arrIndex;

// Remove from other indexes
for (arrIndex in arr) {
if (arr.hasOwnProperty(arrIndex)) {
arr[arrIndex].rebuild();
}
}
};

/**
* Returns the index of the document identified by the passed item's primary key.
* @param {Object} item The item whose primary key should be used to lookup.
Expand Down
173 changes: 87 additions & 86 deletions js/dist/fdb-core.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions js/dist/fdb-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,11 @@ Collection.prototype.setData = function (data, options, callback) {
this.rebuildPrimaryKeyIndex(options);
op.time('Rebuild Primary Key Index');

// Rebuild all other indexes
op.time('Rebuild All Other Indexes');
this._rebuildIndexes();
op.time('Rebuild All Other Indexes');

op.time('Resolve chains');
this.chainSend('setData', data, {oldData: oldData});
op.time('Resolve chains');
Expand Down Expand Up @@ -1729,6 +1734,22 @@ Collection.prototype._removeFromIndexes = function (doc) {
}
};

/**
* Rebuild collection indexes.
* @private
*/
Collection.prototype._rebuildIndexes = function () {
var arr = this._indexByName,
arrIndex;

// Remove from other indexes
for (arrIndex in arr) {
if (arr.hasOwnProperty(arrIndex)) {
arr[arrIndex].rebuild();
}
}
};

/**
* Returns the index of the document identified by the passed item's primary key.
* @param {Object} item The item whose primary key should be used to lookup.
Expand Down
Loading

0 comments on commit c02a94c

Please sign in to comment.