Javier Neira's Library tagged → View Popular
PreciseJava.com - Best practices to improve performance in JDBC
-
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.
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...
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?
-
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?
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...
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.
-
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
-
Fourth [5] and fifth [6] normal forms deal with multi-valued facts
-
The multi-valued
fact may correspond to a many-to-many relationship, as with employees and skills, or to a
many-to-one relationship, as with the children of an employee (assuming only one parent is
an employee). By "many-to-many" we mean that an employee may have several
skills, and a skill may belong to several employees. - 4 more annotations...
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...
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...
4 Steps To a Professional Database Design | ProgrammerFish - Everything that's programmed!
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
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in database
-
Online Databases
Some online database and da...
Items: 11 | Visits: 88
Created by: smckearney
-
OracleDBA
List for all things related...
Items: 31 | Visits: 68
Created by: Jason Williams
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
