Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
b299d6ae
Commit
b299d6ae
authored
Feb 20, 2020
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(update publish): upate publish for translit
parent
43627a08
Pipeline
#1067
passed with stage
in 39 minutes and 3 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
TransliterationRoute.vue
client/components/TransliterationRoute.vue
+1
-1
translitdb.js
imports/api/methods/translitdb.js
+2
-2
transliterationdb.js
imports/api/server/publications/transliterationdb.js
+1
-2
No files found.
client/components/TransliterationRoute.vue
View file @
b299d6ae
...
@@ -238,7 +238,7 @@ export default {
...
@@ -238,7 +238,7 @@ export default {
},
},
transliterationdb
()
{
transliterationdb
()
{
return
TransliterationDb
.
find
({},
{
limit
:
this
.
limit
});
return
TransliterationDb
.
find
({},
{
limit
:
this
.
limit
,
sort
:
{
ID
:
1
}
});
}
}
}
}
};
};
...
...
imports/api/methods/translitdb.js
View file @
b299d6ae
...
@@ -24,7 +24,7 @@ Meteor.methods({
...
@@ -24,7 +24,7 @@ Meteor.methods({
counter
++
;
counter
++
;
// Send to server in batch of 1000 insert operations
// Send to server in batch of 1000 insert operations
if
(
counter
%
1000
0
==
0
)
{
if
(
counter
%
1000
==
0
)
{
// Execute per 1000 operations and re-initialize every 1000 update statements
// Execute per 1000 operations and re-initialize every 1000 update statements
bulkOp
.
execute
(
function
(
e
,
rresult
)
{
bulkOp
.
execute
(
function
(
e
,
rresult
)
{
// do something with result
// do something with result
...
@@ -33,7 +33,7 @@ Meteor.methods({
...
@@ -33,7 +33,7 @@ Meteor.methods({
}
}
}
}
// Clean up queues
// Clean up queues
if
(
counter
%
1000
0
!=
0
)
{
if
(
counter
%
1000
!=
0
)
{
bulkOp
.
execute
(
function
(
e
,
result
)
{
bulkOp
.
execute
(
function
(
e
,
result
)
{
// do something with result
// do something with result
});
});
...
...
imports/api/server/publications/transliterationdb.js
View file @
b299d6ae
...
@@ -11,8 +11,7 @@ Meteor.publish("transliterationdb", function({ limit }) {
...
@@ -11,8 +11,7 @@ Meteor.publish("transliterationdb", function({ limit }) {
check
(
limit
,
Number
);
check
(
limit
,
Number
);
return
TransliterationDb
.
find
({},
{
return
TransliterationDb
.
find
({},
{
disableOplog
:
true
,
sort
:
{
ID
:
1
},
pollingIntervalMs
:
1000
,
limit
:
limit
limit
:
limit
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment