YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

PI Oledb/Odbc, PI Sdk/Api Options · View
TeX88
#1 Posted : Wednesday, August 04, 2010 2:48:37 PM
Rank: Member
Groups: Member

Joined: 8/4/2010
Posts: 10
Location: paris
Hello

I'm writing a program to insert a large number of data in the database of PI in a minimum time. I insert data from 10 different points. What is the most powerful system for this type of operation: Oledb, Odbc, Sdk, Api? I insert in multithread.

My program is currently in C #, should I switch to C + +?

Thank you
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Wednesday, August 04, 2010 3:18:40 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hello,

Welcome to the forum.

PI-OLEDB calls will be translated to PISDK calls, so unless you have the explicit need for OLEDB (e.g. SQL Server Linked Server) I would stick to PISDK.
PI-API is usually not used and PISDK recommended instead.

Short answer, you should be fine to use C# with PISDK (providing you have the relevant development licences).
There are examples on here and over on vCampus if you need any specific help.

Principal Consultant
Real-Time Data Management @ Wipro Technologies
TeX88
#3 Posted : Wednesday, August 04, 2010 3:59:07 PM
Rank: Member
Groups: Member

Joined: 8/4/2010
Posts: 10
Location: paris
Thank you very much.

To execute sql queries, is it more interesting to use ODBC or OLEDB?
RJK Solutions
#4 Posted : Wednesday, August 04, 2010 4:22:56 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Personally, I would say OLEDB.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
TeX88
#5 Posted : Thursday, August 05, 2010 10:45:47 AM
Rank: Member
Groups: Member

Joined: 8/4/2010
Posts: 10
Location: paris
Thank you,

I tried the API and I could not insert with a time taking into account the milliseconds. Is it possible to insert with a time taking into account the millisecond?
TeX88
#6 Posted : Thursday, August 05, 2010 4:16:08 PM
Rank: Member
Groups: Member

Joined: 8/4/2010
Posts: 10
Location: paris
The API seems to insert two times faster than the Sdk. Why is Api not used?
RJK Solutions
#7 Posted : Thursday, August 05, 2010 10:07:06 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
The issue with PI-API is that in order to have a valid development licence for OSIsoft products you need to hold a vCampus membership. The vCampus licence doesn't provide development rights on PI-API (or support it) thus you would need to develop with PI-SDK (unless you have some special arrangement with OSIsoft). Then you can argue that API is sequential and SDK object-orientated, plus API doesn't implement some of the newer security features and new functionality.

I know there are some performance improvements coming in next versions of PI-SDK to support better inserting of multiple values. That said, be sure to log a ticket with OSIsoft TechSupport for any performance issues, it will ensure they address it in future versions.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
TeX88
#8 Posted : Monday, August 09, 2010 2:55:06 PM
Rank: Member
Groups: Member

Joined: 8/4/2010
Posts: 10
Location: paris
Thank you for helping me!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.