Merge branch 'master' of https://phabricator.tomicevic.com/diffusion/MG/memgraph
This commit is contained in:
commit
4583ee1bbf
@ -103,7 +103,7 @@
|
|||||||
// put \n on module 2 space positions
|
// put \n on module 2 space positions
|
||||||
var put_new_line_mod_2 = function(array) {
|
var put_new_line_mod_2 = function(array) {
|
||||||
let join_array = array.map(function(o, i) {
|
let join_array = array.map(function(o, i) {
|
||||||
if (i % 2 == 0)
|
if (i % 2 === 0)
|
||||||
return ' ';
|
return ' ';
|
||||||
else
|
else
|
||||||
return '\n';
|
return '\n';
|
||||||
@ -129,7 +129,7 @@
|
|||||||
var queries = [
|
var queries = [
|
||||||
"CREATE (n{id:@}) RETURN n",
|
"CREATE (n{id:@}) RETURN n",
|
||||||
"MATCH (n{id:#}),(m{id:#}) CREATE (n)-[r:test]->(m) RETURN r",
|
"MATCH (n{id:#}),(m{id:#}) CREATE (n)-[r:test]->(m) RETURN r",
|
||||||
"MATCH (n{id:#}) SET n.prop=^ RETURN n",
|
"MATCH (n{id:#}) SET n.prop=# RETURN n",
|
||||||
"MATCH (n{id:#}) RETURN n",
|
"MATCH (n{id:#}) RETURN n",
|
||||||
"MATCH (n{id:#})-[r]->(m) RETURN count(r)"
|
"MATCH (n{id:#})-[r]->(m) RETURN count(r)"
|
||||||
];
|
];
|
||||||
@ -221,7 +221,7 @@
|
|||||||
strokeWidth: 3
|
strokeWidth: 3
|
||||||
}];
|
}];
|
||||||
chartData.datum(newData).transition().duration(500).call(chart);
|
chartData.datum(newData).transition().duration(500).call(chart);
|
||||||
}
|
};
|
||||||
|
|
||||||
// update
|
// update
|
||||||
function updateNeo4j() {
|
function updateNeo4j() {
|
||||||
@ -234,7 +234,8 @@
|
|||||||
url:'/stats', type:"GET",
|
url:'/stats', type:"GET",
|
||||||
success: function(data){
|
success: function(data){
|
||||||
if (!data || !data.total || !data.per_query)
|
if (!data || !data.total || !data.per_query)
|
||||||
return
|
return;
|
||||||
|
|
||||||
neo4jSec = neo4jSec + 1;
|
neo4jSec = neo4jSec + 1;
|
||||||
neo4jLine.push({x: neo4jSec, y: data.total});
|
neo4jLine.push({x: neo4jSec, y: data.total});
|
||||||
data.per_query.forEach(function(speed, i) {
|
data.per_query.forEach(function(speed, i) {
|
||||||
@ -258,7 +259,8 @@
|
|||||||
url:'/stats', type:"GET",
|
url:'/stats', type:"GET",
|
||||||
success: function(data){
|
success: function(data){
|
||||||
if (!data || !data.total || !data.per_query)
|
if (!data || !data.total || !data.per_query)
|
||||||
return
|
return;
|
||||||
|
|
||||||
memgraphSec = memgraphSec + 1;
|
memgraphSec = memgraphSec + 1;
|
||||||
memgraphLine.push({x: memgraphSec, y: data.total});
|
memgraphLine.push({x: memgraphSec, y: data.total});
|
||||||
data.per_query.forEach(function(speed, i) {
|
data.per_query.forEach(function(speed, i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user