473,625 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best way to store data

Hi
I have about 1000 records of users to store.. I dont like the ideea of a
database server...
How to store does data in a structured way?
An XML?
How big can became such an xml, because I whould like to load it and search
for data.
Can I search for some data without loading all xml into memory?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------
Nov 20 '05 #1
36 2848
* "Crirus" <Cr****@datagro up.ro> scripsit:
I have about 1000 records of users to store.. I dont like the ideea of a
database server...
How to store does data in a structured way?
An XML?
How big can became such an xml, because I whould like to load it and search
for data.
Can I search for some data without loading all xml into memory?


If there are more than 1,000 records, I wouldn't use XML. XML files
only make sense if they are smaller than ~20 KB. You may want to use an
Access database or SQL Server (or MSDE).

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #2
I could use an Access DB and manipulate data with ADO... anyway, I dont
think I will have more than 1000 records with about 6-7 fields, like general
datas about a used.
That's why i'm undecided

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:bo******** *****@ID-208219.news.uni-berlin.de...
* "Crirus" <Cr****@datagro up.ro> scripsit:
I have about 1000 records of users to store.. I dont like the ideea of a
database server...
How to store does data in a structured way?
An XML?
How big can became such an xml, because I whould like to load it and search for data.
Can I search for some data without loading all xml into memory?


If there are more than 1,000 records, I wouldn't use XML. XML files
only make sense if they are smaller than ~20 KB. You may want to use an
Access database or SQL Server (or MSDE).

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>

Nov 20 '05 #3
Hi Crirus,

There was a query the other day from someone who transfers data between his
database and Excel using XML. Another guy was using Xml to stream objects from
one machine to another. These guys were talking about Xml strings in the MBs range!!

Xml will be fine to start off with - you can simply save it in a textfile if you like.
It's
not worth doing anything more complicated unless you find the performance to be
inadequate.

Regards,
Fergus
Nov 20 '05 #4
Fergus, Seems that you rpost was deleted by server... please post again your
ideea :)

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Crirus" <Cr****@datagro up.ro> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
Hi
I have about 1000 records of users to store.. I dont like the ideea of a
database server...
How to store does data in a structured way?
An XML?
How big can became such an xml, because I whould like to load it and search for data.
Can I search for some data without loading all xml into memory?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

Nov 20 '05 #5
Hi Crirus,

(That was wierd).

There was a query the other day from someone who transfers data
between his database and Excel using XML. Another guy was using Xml
to stream objects from one machine to another. These guys were talking
about Xml strings in the MBs range!!

Xml will be fine to start off with - you can simply save it in a textfile if
you like. It's not worth doing anything more complicated unless you find
the performance to be inadequate.

Cheers,
Fergus

Nov 20 '05 #6
Well, I need a structured and easy way to store data about some users...

Something like:

First Name, Last Name, Age, Gender, Country, UserName, Password...

I whould like to search later for a particular user... Do I have to load all
xml into a xmlDocument variable and query for some nodes?
Is there a way to search the XML without loading all data into memory?
--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Fergus Cooney" <fi****@post.co m> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Crirus,

(That was wierd).

There was a query the other day from someone who transfers data
between his database and Excel using XML. Another guy was using Xml
to stream objects from one machine to another. These guys were talking
about Xml strings in the MBs range!!

Xml will be fine to start off with - you can simply save it in a textfile if you like. It's not worth doing anything more complicated unless you find
the performance to be inadequate.

Cheers,
Fergus

Nov 20 '05 #7
Cor
Hi Fergus,

Strange that you don't know the name from that guy who was telling this, who
got that idea from Jay B by the way.

:-))

Cor
Nov 20 '05 #8
Huh?

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Cor" <no*@non.com> wrote in message
news:uB******** *****@tk2msftng p13.phx.gbl...
Hi Fergus,

Strange that you don't know the name from that guy who was telling this, who got that idea from Jay B by the way.

:-))

Cor

Nov 20 '05 #9
Cor
Hi Crirus, Herfried, Fergus,

If you make your XML as a XML dataset, you can use it as a dataset.
Just using dataset.readxml ("xmlfile"))

But see what I write XML as a dataset, not every XML file is a dataset.

It satys in memory and afterwards you can use a dataset.writeXM L("xmlfile")
to put it back..

(Fergus and Herfried, did you see that genealogic website of my, that is
based on that principe, there are datasets build, that is read using xmldoc
on the clientside.)

It is of course always single usermode.

Cor
Nov 20 '05 #10

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

Similar topics

10
1847
by: Bob Bedford | last post by:
Sorry if I post here, but I don't have access to any valuable mysql ng for this question, ans since 99% or php programmers deal with mysql, I'm sure I'll get an answer here. Look at the folloming table: CREATE TABLE searchlog ( IDSearchLog MEDIUMINT UNSIGNED NOT NULL auto_increment, F1 MEDIUMINT UNSIGNED default NULL, F2 VARCHAR(40) default NULL, F3a SMALLINT UNSIGNED default NULL,
12
7709
by: jacob nikom | last post by:
Hi, I would like to store XML files in MySQL. What is the best solution: 1. Convert it to string and store it as CLOB/text 2. Serialize it and store as byte array 3. Flatten it out and create one column per element, each column is VARCHAR Does MySQL has anything special for XML data? Is there any software which helps to store XML data in MySQL
1
2360
by: nzanella | last post by:
Hello, I am currently upgrading a database of products to include pictures to be displayed online. I would like to know whether it would be best to store the pictures themselves in a database as a BLOB or whether it would be best to simply store the filename. What are the pros and cons? Thank you,
1
1053
by: Prince | last post by:
I'm doing the following but I'm not sure if there is a more efficient way to accomplish the same thing. In my Page_Load() method, I accessed a database and stored the information inside a DataSet. On my webpage, I have a DataList server control that binds to the DataSet. The method looks something like the following: Page_Load(){ //do the database connection plus binding
17
8024
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to read or modify this string so I don't want to store it in an INI / Text file or in registery. Can someone please tell me the best practice for this. Thanks Mike
0
1692
by: Louis Aslett | last post by:
I hope this is the correct newsgroup for this query (if not please give me a pointer to where is best): I understand the theory of normalisation etc and am trying to follow best practices in the design of the database for a new project, but I am unsure as to the best practice when one wants to store data relating to combinations of arbitrary numbers of sets of data. For example, take the following two groups of sets, each containing...
32
5640
by: David Isaac | last post by:
I have no experience with database applications. This database will likely hold only a few hundred items, including both textfiles and binary files. I would like a pure Python solution to the extent reasonable. Suggestions? Thank you, Alan Isaac
3
2135
by: gordon | last post by:
Hi I am looking to store some details about a user's configuration choices, in particular the place where they have installed some data files, the OS that they use, and their Windows user name. This information is used in a windows C#.net application. I would like to capture this info the first time that the user opens the app, but each subsequent time to make sure that the location is current when they open the application. This is...
4
2760
by: ink | last post by:
Hi all, I am trying to pull some financial data off of an HTML web page so that I can store it in a Database for Sorting and filtering. I have been thinking about this for some time and trying to find the best way to do it but I am just not experienced enough with this sort of thing to make the best decision, so any advice would be great. The data is on a number of different nested tables with in the HTML, and on a number of different...
0
2335
by: M.-A. Lemburg | last post by:
On 2008-05-01 13:37, Lance Gamet wrote: I don't think this is a Python question, but more a platform question. Users on different platforms will expect configuration data in different places. It's usually best to stick to the platform conventions. Python has modules available for accessing INI-files, XML-files and also for the Windows registry, so that part is easy.
0
8251
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
8182
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,...
1
8352
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
8494
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
7178
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
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
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
1
1800
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.