-
Notifications
You must be signed in to change notification settings - Fork 194
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
FindMember - API is very slow after adding 600+ conversations into storage #12562
Comments
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned. |
Since currently there's no cache inside TeamsFx SDK, it's expected the two sets of remote calls taking time.
For now one workaround is to add logic to your
|
Thanks for responding to this. Do you have any sample code to store email and get conversation reference by email? |
It depends how your ... conversationRef: ConversationReference;
let account;
await adapter.continueConversationAsync(
botAppId,
conversationRef,
async (context) => {
account = await TeamsInfo.getMember(context, context.activity.user.id);
}
);
account.email ... |
Describe the bug
On the TeamsFX - TypeScript, the findMember method has become very slow since I have more than 600 persisted conversations in my storage.
When I first put my Teams Bot into production, sending proactive notifications to a Teams user took about 7 seconds (With less conversations stored ~10), now it's 15 minutes.
To Reproduce
Steps to reproduce the behavior:
More details
The bot only send notifications to my users.
To find the right user, I use the findMember method available on BotBuilderCloudAdapter.ConversationBot class.
The condition used for matching is member.account.email === email.
1:1 conversations are stored in an Azure blob storage compatible bucket.
VS Code Extension Information (please complete the following information):
The text was updated successfully, but these errors were encountered: