Skip to main content

Javier Neira's Library tagged database   View Popular

09 Dec 09

PreciseJava.com - Best practices to improve performance in JDBC

  • 2. Do batch update



    You can send multiple queries to the database at a time using batch update

    feature of statement objects this reduces the number of JDBC calls and improves

    performance. Here is an example of how you can do batch update,



    statement.addBatch( "sql query1");



    statement.addBatch(" sql query2");



    statement.addBatch(" sql query3");



    statement.executeBatch();



    All three types of statements have these methods to do batch update.

23 Nov 09

Richard Dingwall » The trouble with soft delete

  • First is the standard deleted flag to indicate an item should be ignored:
  • nother style uses meaningful status codes:
  • 20 more annotations...
19 Oct 09

MapReduce Online! (and some gimmes) « Data Beta

Background:
Parallel database engines have always been able to stream out results to certain queries while they run. And a bunch of us did research over the years to leverage that feature to do more things, like online aggregation (for “early returns” from inherently batch jobs), and continuous queries (for processing infinitely streaming data inputs, producing infinitely streaming data outputs). So why not do the same for MapReduce engines? Why are they limited to batch processing?

databeta.wordpress.com/...mapreduce-online - Preview

database mapreduce parallelism research hadoop

  • Parallel database engines have always been able to stream out results to certain queries while they run.  And a bunch of us did research over the years to leverage that feature to do more things, like online aggregation (for “early returns” from inherently batch jobs), and continuous queries (for processing infinitely streaming data inputs, producing infinitely streaming data outputs).  So why not do the same for MapReduce engines?  Why are they limited to batch processing?
17 Oct 09

Code Monkeyism: ORMs are a thing of the past

  • In the end, the structure of data is something fundamental that can’t be simplified or abstracted away. The ORM doesn’t resolve the impedance mismatch, it just postpones it.
  • You think the ORM works but it doesn’t. It throws exceptions to you.
  • 2 more annotations...
15 Sep 09

Modeling Data Associations in Clojure? - Clojure | Google Groups

Nested maps are a good way to start, but they're pretty low level as
you want to do more complicated things. If you're talking about data
associations, the relational model is higher level and it's really
worth modeling your data in that way.

Relational data manipulation doesn't require a sql database. If you
want to use an in memory data representation, clojure has a couple of
options. The clojure.set namespace [1] has some useful functions
operating on sets of maps, in a relational way. join, select, and
project will get you pretty far.

A more structured and powerful way of doing things is
clojure.contrib.datalog [2]. I haven't had a chance to play with this
(yet!), but it looks very cool. It's a functional approach and it's
more well integrated with the language than something generating sql.

If your app really does call for connection to an external db, then
there's no reason not to go with clj-record. You wouldn't be the first
person to make a SQL db backed web app. :) Using a database through
clojure feels a lot more natural than via an ORM.

groups.google.com/...263e38a71ac358fa - Preview

clojure business data modeling database

  • You can only

    create a new map with some data reused. There lies the problem - how

    to "update the references" to the new map at all the places that link

    to it. My hunch tells me to use refs for that :)
  • Nested maps are a good way to start, but they're pretty low level as

    you want to do more complicated things. If you're talking about data

    associations, the relational model is higher level and it's really

    worth modeling your data in that way.

    Relational data manipulation doesn't require a sql database. If you

    want to use an in memory data representation, clojure has a couple of

    options. The clojure.set namespace [1] has some useful functions

    operating on sets of maps, in a relational way. join, select, and

    project will get you pretty far.

    A more structured and powerful way of doing things is

    clojure.contrib.datalog [2]. I haven't had a chance to play with this

    (yet!), but it looks very cool. It's a functional approach and it's

    more well integrated with the language than something generating sql.

    If your app really does call for connection to an external db, then

    there's no reason not to go with clj-record. You wouldn't be the first

    person to make a SQL db backed web app. :) Using a database through

    clojure feels a lot more natural than via an ORM.

  • 1 more annotations...

A Simple Guide to Five Normal Forms in Relational Database Theory

MySQL :: An Introduction to Database Normalization

  • The first normal form (or 1NF) requires that the values in each column of a table are atomic. By atomic we mean that there are no sets of values within a column
  • One method for bringing a table into first normal form is to separate the entities contained in the table into separate tables
  • 12 more annotations...
10 Sep 09

How FriendFeed uses MySQL to store schema-less data - Bret Taylor's blog

  • making schema changes or adding indexes to a database with more than 10 - 20 million rows completely locks the database for hours at a time. Removing old indexes takes just as much time, and not removing them hurts performance because the database will continue to read and write to those unused blocks on every INSERT, pushing important blocks out of memory
  • We can change the "schema" simply by storing new properties.
  • 3 more annotations...
09 Jan 09

InfoQ: Performance Anti-Patterns in Database-Driven Applications

In this article, Alois Reitbauer, a Performance Architect for dynaTrace Software, specifies several architectural anti-patterns which can downgrade an application’s performance. Knowing those anti-patterns and proactively designing the application to avoi

www.infoq.com/...Anti-Patterns-Alois-Reitbauer - Preview

patterns performance database

1 - 18 of 18
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo