-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spanner: add object caching #2362
spanner: add object caching #2362
Conversation
@stephenplusplus I still need to write unit tests but I wanted your approval before I did that (in case you can think of a better way) @Chipintoza is there any chance you could check this branch out and test with your application to see if you're still seeing the same issues? |
Yes today i will do this and comment you. (We have big Time Zone difference :() |
@callmehiphop i update these files and transaction.js from #2358
and data imported in Users Table 21903 instead of 33742 |
please look comment |
@Chipintoza sorry this kind of slipped away from me. I put in some additional error handling and rebased the code against master. Could you give this another test run? If the errors persist could you point me to the files & lines where the errors originate from? I couldn't determine that from the stacks you provided. |
@stephenplusplus i run my import and during the process there was:
and
at the end - Too many active sessions, limit is 10000
|
@@ -371,7 +371,6 @@ Transaction.prototype.requestStream = function(config) { | |||
return; | |||
} | |||
|
|||
requestStream.end(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM -- @Chipintoza do you want to give this PR a try before we merge? |
@stephenplusplus i run my imports, it take a much time, in my country now is 01:14 AM, tomorrow i will report everything. |
@stephenplusplus as i understand everything works fine! I did not have optimal importing process and the request for update for same record was parallel many times, maybe more than 1000 time. it looks like hotspots occurred. There was two types of errors
As i understand all 100 sessions were in retry process and because of this Transactions could not be created. Am i right? When i optimised import, everything ran well. Thank you everyone |
Thank you for testing! @callmehiphop does everything described above sound expected? |
@stephenplusplus actually I made a small change in a recent commit, but otherwise everything sounds good. PTAL! |
Closes #2356