Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Database Size and Smart Connector EWS Server Clean Up

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • Database Size and Smart Connector EWS Server Clean Up
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
bbradley_jaxcon
Lieutenant JG bbradley_jaxcon
Lieutenant JG

Posted: ‎2020-09-18 06:18 AM

0 Likes
7
2190
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-09-18 06:18 AM

Database Size and Smart Connector EWS Server Clean Up

I have had our Smart Connector Processor running for a few months now and everything seems to be running fine. But I am slightly concerned about the size of the database and some of the data revealed in the EWS Server.

 

We installed Smart Connector using the LocalDB option. SC version : 2.4.23 with SW ES Version : 2.0.3.4002 

 

Database.PNG

 

Webpage.PNG


Are there some maintenance task we should be doing?

I personally did not write the code for our processor, but I’ll explain what should do. The processor makes a http web request to a server and retrieves a list of points with values. It then creates these points and stores them in the Smart Connector EWS Server,  and then after subsequent polls the value is updated in the Smart Connector EWS Server. In StruxureWare we made a EcoStruxure Web Service to poll the Smart Connector ESW Server.

Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-09-18 06:34 AM . Last Modified: ‎2020-09-18 06:48 AM

0 Likes
6
2188
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-09-18 06:34 AM

Hi Brian,

 

Yes there is!

 

There are actually two ways to do this:

 

  • In the processor itself (preferred)
    • The developer can use the SmartConnector.Utilities library EwsItemManager, there is a function called 'DeleteSubscriptionNotifications' that will cleanup the Subscriptions and Notifications. This function should be periodically executed, usually during an Update processor run.
  • If there is no way get the above function into the processor itself. There was a Standalone processor developed called 'EwsServerCleanupProcessor' that is part of the SmartConnector.Utilities Library. You could add and configure this processor like any other processor. 

 

My concern that I might have with your current state, is that your database tables may be too large to run either of these without the cleanup timing out (although one of these should be implemented for future). If this is the case, I would log into your database, and TRUNCATE both the EwsNotificationItems table and EwsSubscriptionItems table. This should hopefully allow the above methods to run without timing out (I know the EwsNotifications, and EwsSubscriptions tables have FK constraints so they cannot be Truncated, but in theory you could run a DELETE command on them if the requests are still timing out, the DELETE command may just just might take awhile.)

 

Let me know if you have any questions.

 

Best Regards,

 

-Jeff

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
Replies 7
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-09-18 06:34 AM . Last Modified: ‎2020-09-18 06:48 AM

0 Likes
6
2189
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-09-18 06:34 AM

Hi Brian,

 

Yes there is!

 

There are actually two ways to do this:

 

  • In the processor itself (preferred)
    • The developer can use the SmartConnector.Utilities library EwsItemManager, there is a function called 'DeleteSubscriptionNotifications' that will cleanup the Subscriptions and Notifications. This function should be periodically executed, usually during an Update processor run.
  • If there is no way get the above function into the processor itself. There was a Standalone processor developed called 'EwsServerCleanupProcessor' that is part of the SmartConnector.Utilities Library. You could add and configure this processor like any other processor. 

 

My concern that I might have with your current state, is that your database tables may be too large to run either of these without the cleanup timing out (although one of these should be implemented for future). If this is the case, I would log into your database, and TRUNCATE both the EwsNotificationItems table and EwsSubscriptionItems table. This should hopefully allow the above methods to run without timing out (I know the EwsNotifications, and EwsSubscriptions tables have FK constraints so they cannot be Truncated, but in theory you could run a DELETE command on them if the requests are still timing out, the DELETE command may just just might take awhile.)

 

Let me know if you have any questions.

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
bbradley_jaxcon
Lieutenant JG bbradley_jaxcon
Lieutenant JG

Posted: ‎2020-09-18 06:48 AM

0 Likes
5
2181
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-09-18 06:48 AM

Thanks Jeff, I'll forward this onto the our developer who is making the changes to the processor. Your correct that the size has been causing some timeout issues when purging. I'll manipulate the database like you suggested and get everything to a more workable size.

Tags (1)
  • Tags:
  • english
Reply
bbradley_jaxcon
Lieutenant JG bbradley_jaxcon
Lieutenant JG

Posted: ‎2020-09-18 08:12 AM

0 Likes
4
2179
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-09-18 08:12 AM

Doing a truncation in the DB, purging via the SC website, and then shrinking the DB cleared everything up and restored all the space.

Tags (1)
  • Tags:
  • english
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2020-09-18 08:14 AM

0 Likes
3
2177
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2020-09-18 08:14 AM

Hi Brian,

 

Great news!

 

If the developer won't be able to add the code for a while, I would recommend, configuring an instance of the EwsServerCleanupProcessor, and run that on a schedule, so the database remains small.

 

Let me know if you need any assistance with that.

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
SteveGregory
Commander SteveGregory Commander
Commander

Posted: ‎2021-04-02 09:10 PM

0 Likes
2
2120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-04-02 09:10 PM

Hi Jeff, Is the clean up utility available for version 2.2? We have an older site that has this exact issue?

Tags (1)
  • Tags:
  • english
Reply
bbradley_jaxcon
Lieutenant JG bbradley_jaxcon
Lieutenant JG

Posted: ‎2021-04-05 07:49 AM

0 Likes
0
2117
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-04-05 07:49 AM

I suspect that using the same processor for an old version would work just fine

Tags (1)
  • Tags:
  • english
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-04-05 08:54 AM

1 Like
0
2115
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-04-05 08:54 AM

Hi @SteveGregory ,

 

The cleanup utility (that is part of SmartConnector.Utilities), was never written for 2.2. That said, similar code could be written and added to the Smart Connector extension (but that would require code changes to the old extension).

 

If the Smart Connector extension that is being used on that site is still maintained, I would think the best thing to do would be to get the most recent version and update the Smart Connector framework along with it.

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of