473,748 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C database :: compared to a relational database engine?

Hi,
I am working on a program to archive data to disk.

At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?

Thanks to any and all replies.

Aug 24 '07 #1
24 2096
sonos wrote:
Hi,
I am working on a program to archive data to disk.

At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?
That's your call. You can either start out with a database, or start
out with your own implementation, depending on the complexity of the
data set, the target platform, performance requirements and a host of
other variables.

There isn't a simple answer.

--
Ian Collins.
Aug 24 '07 #2
On Aug 24, 3:42 pm, Ian Collins <ian-n...@hotmail.co mwrote:
sonos wrote:
Hi,
I am working on a program to archive data to disk.
At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?

That's your call. You can either start out with a database, or start
out with your own implementation, depending on the complexity of the
data set, the target platform, performance requirements and a host of
other variables.

There isn't a simple answer.

--
Ian Collins.
OK, thanks. Can you give an example of a simple C data set, a
moderately complex data set, and a data set clearly meant for a
relational database engine?

Aug 24 '07 #3
sonos wrote:
On Aug 24, 3:42 pm, Ian Collins <ian-n...@hotmail.co mwrote:
>sonos wrote:
>>Hi,
I am working on a program to archive data to disk.
At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?
That's your call. You can either start out with a database, or start
out with your own implementation, depending on the complexity of the
data set, the target platform, performance requirements and a host of
other variables.

There isn't a simple answer.
*Please don't quote signatures*
>
OK, thanks. Can you give an example of a simple C data set, a
moderately complex data set, and a data set clearly meant for a
relational database engine?
No, because of the other variables I mentioned. I have implemented very
complex database engines in C for embedded platforms where we couldn't
find a database engine that would work on that platform. I have also
used a database (because it was there) to perform simple archiving on
hosted platforms.

You have to weigh up the situation and go for what's best for you. On a
hosted platform, I'd use a database for all but the most basic
applications so long as performance wasn't a issue, just to save the
trouble of writing and testing my own.

--
Ian Collins.
Aug 24 '07 #4
On Aug 24, 1:17 pm, sonos <dspcyp...@gmai l.comwrote:
Hi,
I am working on a program to archive data to disk.

At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?
Only when you care about your data.
Thanks to any and all replies.

Aug 24 '07 #5
sonos skrev:
Hi,
I am working on a program to archive data to disk.

At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?

Thanks to any and all replies.

I would sugest using PostgreSQL and it's c library...
http://www.postgresql.org/docs/8.1/static/libpq.html
Aug 26 '07 #6
Carramba said:
sonos skrev:
>>
At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?

I would sugest using PostgreSQL and it's c library...
It might be better to move comparative databasology discussions to a
database programming newsgroup. FTR, I don't see any reason for the OP
to avoid MySQL; a database programming newsgroup might, so why not ask
them?

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Aug 26 '07 #7
On 2007-08-26 18:00, Carramba <ca******@examp le.comwrote:
sonos skrev:
>I am working on a program to archive data to disk.

At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?
* If you need or want to manipulate your data with other tools than
your program.

* If your data fits well into the relational model.

* If you want to access your data from other hosts

* If you need transactions, constraints, or other services
ordinarily provided by an RDBMS.
>Thanks to any and all replies.

I would sugest using PostgreSQL and it's c library...
http://www.postgresql.org/docs/8.1/static/libpq.html
No. PostgreSQL is not a C library. It comes with a C library which
simplifies sending queries to the server. The database engine itself is
running as a separate process.

There are SQL engines implemented as libraries: SQLite, the MS Jet
engine (used by MS Access), embedded MySQL, etc.

hp
--
_ | Peter J. Holzer | I know I'd be respectful of a pirate
|_|_) | Sysadmin WSR | with an emu on his shoulder.
| | | hj*@hjp.at |
__/ | http://www.hjp.at/ | -- Sam in "Freefall"
Aug 26 '07 #8
On 2007-08-26 19:33, Peter J. Holzer <hj*********@hj p.atwrote:
On 2007-08-26 18:00, Carramba <ca******@examp le.comwrote:
>sonos skrev:
>>I am working on a program to archive data to disk.

At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?

* If you need or want to manipulate your data with other tools than
your program.

* If your data fits well into the relational model.

* If you want to access your data from other hosts

* If you need transactions, constraints, or other services
ordinarily provided by an RDBMS.
Forgot the most important reason (and the one least off-topic here):

* The queries you want to make are easier to express in SQL than in C.

hp
--
_ | Peter J. Holzer | I know I'd be respectful of a pirate
|_|_) | Sysadmin WSR | with an emu on his shoulder.
| | | hj*@hjp.at |
__/ | http://www.hjp.at/ | -- Sam in "Freefall"
Aug 26 '07 #9
On Aug 26, 2:33 pm, "Peter J. Holzer" <hjp-usen...@hjp.atw rote:
On 2007-08-26 18:00, Carramba <carra...@examp le.comwrote:
sonos skrev:
I am working on a program to archive data to disk.
At what point is it best to use a relational database like MySQL as
the backend instead of a C program alone?

* If you need or want to manipulate your data with other tools than
your program.

* If your data fits well into the relational model.

* If you want to access your data from other hosts

* If you need transactions, constraints, or other services
ordinarily provided by an RDBMS.
It just seems to me that w/ the current uC computational power,
performance return from a relational database engine is not really
much better than C. Or is it that a SQL query is faster to code than
to hard code the C program? As to remote access, that does not really
pose a problem w. POSIX. Or, were you thinking about concurrent use of
a file? i.e. is contention easier to manage w. a RDB engine compared
to root file systems? And I guess that poses another perspective; C
programs must have a root filesystem (and less portability) whereas
a .db file can be easily ported to another OS?

Aug 26 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2328
by: Ruby Tuesdays | last post by:
Perhaps you database guru able to suggest what would be a good choice for opensource database platform to use to develop projects. At the moment the project is small/medium, but it will grow in size both data, users, and number of transactions. I'm using MySQL for right now but it lack of trigger, stored procedures, etc ... it sometimes slows the project. Is PostgreSQL any better/worse? Or is that any other choice beside the two?...
5
14229
by: Alex | last post by:
Hi all, We're looking at a vendor who uses the InterSystems Cache Database Platform, but our IT department has zero experience with this system. This software package will have a pivotal and mission critical roll in our organization, so I'd like some comments on what others think of this database platform. Mainly I'm curious how easy/difficult it is to query a Cache Database, and does it use standard SQL calls like Oracle and MS SQL? ...
1
1822
by: Marek Kotowski | last post by:
I'm preparing short dictionary and this is the question: are 'RDBMS' and 'database server' synonyms? If not, what are the differences? Thanx in advance. Regards Marek Kotowski Warsaw
3
9194
by: canigou9 (remove your socks to reply) | last post by:
(cross posted - comp.databases.ms-access, microsoft.public.access) Hello folks - this is my first post here, after a short lurk. I have written an application in Access2002 for a friend's business which allows him to take orders, arrange deliveries and trace deliveries back in the event of subsequent complaints. It uses a handful of tables in a relational schema, with a few ancillary lookup tables, some forms, reports and VBA modules.
6
2625
by: Jerry Spence1 | last post by:
Why doesn't the following work in my ASP program? I have imported ADOX I am trying to create a temporary database on the user's PC. The example is taken from Microsoft. Dim cat As Catalog = New Catalog cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\NewMDB.mdb;" & _
4
5131
by: ImOk | last post by:
I need to program generically. I am familiar with the ODBC layer but never used PDO or DB. Does anyone have any experience with these database layers? Thanks
9
3009
by: TC | last post by:
Like a lot of database developers, I often choose Jet for the back- end. I'm starting to worry about what will happen when Jet is deprecated. Ostensibly, Jet users like me must switch to SQL Server (or MSDE / SQL Express), but there's something I just don't understand. Without Jet, how will we create file server database applications? In other words, how will we create multi-user apps which use a file server to share data and don't...
5
6483
by: Dave | last post by:
I need to filter an Access 2000 result set in ASP 30 using the ADO recordset.filter. I build the filter in pieces. The first clause of the filter is this... WHERE word LIKE 'S%' ... to which other clauses are appended with AND. This all works fine as long as I provide a condition for the first clause
14
2235
by: Johnny Jörgensen | last post by:
Hi all I just saw an ad in the latest ComponentSource newsletter for a database engine called VistaDB 3.0. http://www.vistadb.net/default.asp It looks very interesting as a database engine for smaller applications where you would normally use access. Plus it can be embedded into the exe.
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8239
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.