Developer forum

Forum » Integration » ExistingUsers logic in UserProvider versus other providers

ExistingUsers logic in UserProvider versus other providers

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

In a project, we tracked down a database performance bottleneck to the UserProvider. This is not a Bug, but likely a performance improvement that can be made

  • The finding is on how the UserProvider checks for ExistingUsers
  • It's using the query "select * from AccessUser", which returns all columns
  • When looking at the code, it looks like it's really using "AccessUserID""AccessUserUserName""AccessUserCustomerNumber""AccessUserEmail""AccessUserExternalId"
  • When you compare with the EcomDestinationWriter or DynamicwebBulkInsertDestinationWriter this has been simplified, only querying for the necessary columns.

 

This reduces the payload and performs faster, being more noticeable with the more custom fields and more user records we have.

 

Am I missing something? If not, could it be optimized?

 

BR,

Nuno Aguiar


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Nuno,
yes, it makes sense to implement, I have created #27743 for that.
BR, Dmitrij

Votes for this answer: 1

 

You must be logged in to post in the forum