Changes

Jump to navigation Jump to search
102 bytes removed ,  16:59, 10 April 2019
no edit summary
converted into XML fragments. For this purpose the parse function of the [[JSON Module|XQuery JSON Module]] is used. In the examples section both versions are shown ([[#Example Tweet (JSON)|tweet as JSON]] and [[#Example Tweet (XML)|tweet as XML]]). For storing the tweets including the meta-data, we use the standard ''insert'' function of [[Updates|XQuery Update]].
=Twitters' Twitter’s Streaming Data=
Each tweet object in the data stream contains the tweet message itself and over 60 data fields (for further information see the [https://dev.twitter.com/docs/platform-objects fields description]).
The test show the time BaseX needs to insert large amounts of real tweets into a database. We can derive that BaseX scales very well and can keep up
with the incoming amount of tweets in the stream. Some lower values can occur, cause the size of the tweets differ according to the meta-data contained in the tweet object.<br />
Note: The <code>[[Options#AUTOFLUSH{{Option|AUTOFLUSH]]</code> }} option is set to <code>FALSE</code> (default: <code>SET AUTOFLUSH TRUE</code>).
System Setup: Mac OS X 10.6.8, 3.2 GHz Intel Core i3, 8 GB 1333 MHz DDR3 RAM <br/>
[[File:insertTweets.png]]
 
=== Bulk Updates ===
 
coming soon...
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu