0
我的後端是由parse.com製作現在我在Parse.com分析 - 部分選項卡「慢查詢」中體驗過。很好的功能,看你的查詢如何執行。Parse.com緩慢查詢分析 - 查詢與空where子句
現在我看到有有與空礦的查詢的WHERE子句,你可以在這裏看到:
Users where:{ facebookID: ... }
Friends where:{ user: ... }
Friends where:{ objectId: ... }
Users where:{}
Friends_Rel where:{ friend: ..., user: ... }
Friends_Rel where:{}
現在我的問題是,爲什麼會有空where子句?因爲我認爲這個查詢導致了一個錯誤,我認爲這不是我想要的。 我總是建立我的查詢,無論是這樣的:
var query = new Parse.Query("Friends_Rel");
query.equalTo("friend", friendID);
query.equalTo("user", userID);
query.find({
success: function(results) {
},
error: function(error) {
}
});
或像這樣:
var query = new Parse.Query("Users");
query.get(objectID, { // Gets row you're trying to update
success: function(row) {
},
error: function(row, error) {
}
});
是否有此條款,他們可能來自任何解釋? .get方法的結果在哪裏:{}?我不確定...