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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

How to avoid saving values to SQL Server when modifying a value item

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
  • How to avoid saving values to SQL Server when modifying a value item
Options
  • 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
Related Products
product field
Schneider Electric
Smart Connector

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SmartConnector Forum
jorge_initech_e
Lieutenant | EcoXpert Master jorge_initech_e Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2021-09-07 03:50 AM

0 Likes
3
1256
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-09-07 03:50 AM

How to avoid saving values to SQL Server when modifying a value item

I'm working on a smart connector that invokes DataAdapter.ModifyValueItemValue several times per second, because is dealing with high changing rate values. The problem is that ModifyValueItemValue command stores each time the new value on the database till the point it can't handle it and the SQL Server process blows.

 

Is there any option to change the value of the item (in the process memory) but not update the database?

 

Thanks.

  • Thumbnail of Smart Connector
    Schneider Electric
    Smart Connector
View products (1)
Tags (2)
  • Tags:
  • english
  • smart connector
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 3
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-13 02:47 AM

1 Like
2
1251
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-09-13 02:47 AM

Hi Jorge,

 

I'm curious about how this is implemented, do you have EWS clients polling the Smartconnector EWS Server with the same frequency?

 

If you are changing a big number of Items, I suggest you turn off AutoCommit for the adapter before the operations, then CommitChanges manually, and depending on your use case, turning AutoCommit on again.

 

Adapter.AutoCommit = false;
....ModifyItems....
Adapter.CommitChanges();
Adapter.AutoCommit = true;

 

Hope this helps,

Armend 

Tags (1)
  • Tags:
  • english
Reply
jorge_initech_e
Lieutenant | EcoXpert Master jorge_initech_e Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2021-09-23 07:16 AM

1 Like
1
1248
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-09-23 07:16 AM

Hi @ardak, i have an EBO Enterprise Server polling the EWS at its highest speed (1 second). I would prefer a way of communication from the processor to the EBO that doesn't involve polling (for example, something based on events).

 

I've read some posts about another method called "CSP" but i'm not sure what it is or how it works, i've tried to found information about it, but no luck so far.

 

What i'm doing with this connector is reading an image from an IP camera, then i convert it to a base64 value and put it into a String value. That string value is binded with a tgml's image element and i can watch the camera inside a tgml. Problem is, refresh rate is very slow, and there's a big amount of data that is stored in database that i'm not interested on (i don't want to keep an historical log of images).

 

thats why i'm looking for a method that could allow me to have a refresh rate of at least two images per second without having to do any database transaction.

 

Thanks in advance

Tags (1)
  • Tags:
  • english
Reply
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-27 12:16 AM . Last Modified: ‎2021-09-27 12:18 AM

0 Likes
0
1240
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-09-27 12:16 AM

Hi Jorge,

 

That is a cool project!

 

CSP will unfortunately not help here.

 

I can't think of a way that this could be done using a DataAdapter in a processor and hosting an EWS object without causing a database transaction.

 

I think what I would try if I was in your situation would be to set up a REST endpoint and use a simple external client to write to a string value hosted in EBO. I'm not sure how EBO and the TGML viewer would handle this in your implementation, but I think it would be faster than doing it through a hosted object in a Smartconnector EWS server.

 

The only issue I can think of here off the bat is that a "PUT", apart from the EWS "SetValues" command, also triggers an EWS "GetItems", which in your case is costly(for EBO) and unnecessary.

 

Smartconnector is customizable and you can write a custom REST Provider for smartconnector that behaves the way you want to, but it's quite a bit of work.

 

I would try with the built in one first and see how it works for you.

 

BR

Armend 

Tags (1)
  • Tags:
  • english
Reply
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