Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


MongoDB

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 10:49 - 19 Jul 2015    Post subject: MongoDB Reply with quote

Anyone got any experience of Mongo, or non-relational databases in general?
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Taught2BCauti...
World Chat Champion



Joined: 12 Jan 2012
Karma :

PostPosted: 11:10 - 19 Jul 2015    Post subject: Reply with quote

I have a little experience with Mongo and other 'NoSQL' types - but mostly in extracting the data from them so they could be binned.
____________________
Honda Varadero XL125(V8)
www.TheFutureIsHere.eu
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Dalemac
World Chat Champion



Joined: 15 Oct 2006
Karma :

PostPosted: 11:47 - 19 Jul 2015    Post subject: Reply with quote

Yes.

Next question?
____________________
YBR125 -> GPZ500S -> SL1000
 Back to top
View user's profile Send private message You must be logged in to rate posts

The Shaggy D.A.
Super Spammer



Joined: 12 Sep 2008
Karma :

PostPosted: 11:51 - 19 Jul 2015    Post subject: Reply with quote

I spent a lot of the 80's and 90's working with Pick, in its various guises.

[edit] Also spent an unfortunate period with MUMPS.
____________________
Chances are quite high you are not in my Monkeysphere, and I don't care about you. Don't take it personally.
Currently : Royal Enfield 350 Meteor
Previously : CB100N > CB250RS > XJ900F > GT550 > GPZ750R/1000RX > AJS M16 > R100RT > Bullet 500 > CB500 > LS650P > Bullet Electra X & YBR125 > Bullet 350 "Superstar" & YBR125 Custom > Royal Enfield Classic 500 Despatch Limited Edition (28 of 200) & CB Two-Fifty Nighthawk > ER5
 Back to top
View user's profile Send private message You must be logged in to rate posts

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 12:18 - 19 Jul 2015    Post subject: Reply with quote

Dalemac wrote:
Yes.

Next question?

Any major pitfalls?
What's the performance like compared to SQL style databases? especially read performance.
How much of a headache is the administration side?
Limitations, ie. physical file sizes, records per table, fields per record?
Does performance degrade with 'size'

The non-relational model seems on face value to fit the sort of data I need to handle better than the rigid grid of records all with identical field that SQL and C-Tree impose. I currently use C-Tree, but due to the age of the software I'm using a complete re-write is on the horizon, I want to be sure I've selected the best database model for the job since the application is very mission-critical. On one hand I don't want to shoe-horn the data into a convention database simply because that's what most people do, on the other hand I don't want to end up with a millstone round my neck with something less conventional.
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Rogerborg
nimbA



Joined: 26 Oct 2010
Karma :

PostPosted: 13:28 - 19 Jul 2015    Post subject: Reply with quote

Andy_Pagin wrote:
the sort of data I need to handle

Are you in management?

I ask because you've talked about solutions rather than explaining your requirements.
____________________
Biking is 1/20th as dangerous as horse riding.
GONE: HN125-8, LF-250B, GPz 305, GPZ 500S, Burgman 400 // RIDING: F650GS (800 twin), Royal Enfield Bullet Electra 500 AVL, Ninja 250R because racebike
 Back to top
View user's profile Send private message You must be logged in to rate posts

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 13:49 - 19 Jul 2015    Post subject: Reply with quote

I'm not actually management, but since I'm the programmer, analyst, business analyst and dba I'm a manager in all but name. Ultimately I make the decisions on the project.

Requirement is a system to store insurance data for the purpose of reporting and processing the recovery of re-insurance and the management of claims and reserves. This is in the run-off business, so off the shelf applications won't do, it's too specialised.
Insurance data isn't terribliy logical and data requirements for direct inwards, assumed Ri, and all the hideously complex reinsurance models vary considerably.
For example our policy datafiles contain all the policies for the client, both inwards and outwards, but individual policy records require different mandatory elements depending on the policy type. So the policy file is a bit of a mess, 75% of the fields are blank in most cases.
So I'm thinking a MongoDB would allow me to create records tailored to specific policies, and the ability to create one-to-many relationships within a single datafile, specific to individual policies would be useful.

tl;dr; I need to store loads of complex, often illogical data, much of it dating back to the 1950s and produce lots of complex reports, frequently, and very quickly.
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Taught2BCauti...
World Chat Champion



Joined: 12 Jan 2012
Karma :

PostPosted: 14:05 - 19 Jul 2015    Post subject: Reply with quote

It's not easy to compare Mongo to SQL, because they are good at different things. Mongo is good for storing and retrieving documents, and is used as the backend system by sites like eBay, LinkedIn and CraigsList, where table-based systems wouldn't perform so well.

For your scenario, you could perhaps consider using Mongo to store all of the policy documents, and a SQL database to store policyholder data, and cross reference which documents apply to which policy.

One alternative, might be to store the documents as PDF's in a BLOB field in SQL, but that would limit search functions, if you needed to search for phrases in the documents.
____________________
Honda Varadero XL125(V8)
www.TheFutureIsHere.eu
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

duhawkz
World Chat Champion



Joined: 03 Dec 2006
Karma :

PostPosted: 15:15 - 19 Jul 2015    Post subject: Reply with quote

Postgres can aslo do document databases and it out performs mongodb.
https://www.enterprisedb.com/postgres-plus-edb-blog/marc-linster/postgres-outperforms-mongodb-and-ushers-new-developer-reality

We use mongodb and MarkLogic, Marklogic is expensive and clunky, we haven't been running our own mongodb servers long enough to find its faults. Lots of things seem like and after thought with mongodb.

here are the limits for mongo
https://docs.mongodb.org/manual/reference/limits/

Nosql allows devs to quickly get apps running with out having to think about how its data is structured in the DB, instead of spending months designing databases. So devs love it because projects get moving quickly.

It also means mistake can be made, find that some of the data you put in nosql dbs, really was relational , which is not good when your months into a project?
____________________
"The guy is a worthless cunt and I honestly believe I would be a slightly happier person if he died." - Chris-Red
 Back to top
View user's profile Send private message You must be logged in to rate posts

ScaredyCat
World Chat Champion



Joined: 19 May 2012
Karma :

PostPosted: 17:50 - 19 Jul 2015    Post subject: Reply with quote

Have you taken a look at elasticsearch ? Easy to cluster and add nodes, very powerful indeed.
____________________
Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple
 Back to top
View user's profile Send private message You must be logged in to rate posts

Rogerborg
nimbA



Joined: 26 Oct 2010
Karma :

PostPosted: 18:59 - 19 Jul 2015    Post subject: Reply with quote

elasticsearch is splendid for what it does, and can be extended fairly easily, but it's not really intended for analysis.

Mongodb is still very much try-it-and-see. Historically - and I stress that - it treated data integrity as a "yeah, we'll give it a try" feature. I'm sure it's solved that by now, it has some very good people working on it, but the thing about SQL solutions is that they've had much longer to solve for quality and performance.

Nobody ever got sacked for using PostgreSQL, is what I'm saying.

My solution would be to sack Andy and use the money to buy a SAS Visual Analytics managed solution. That might not be the answer that's being sought though. Whistle
____________________
Biking is 1/20th as dangerous as horse riding.
GONE: HN125-8, LF-250B, GPz 305, GPZ 500S, Burgman 400 // RIDING: F650GS (800 twin), Royal Enfield Bullet Electra 500 AVL, Ninja 250R because racebike
 Back to top
View user's profile Send private message You must be logged in to rate posts

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 19:11 - 19 Jul 2015    Post subject: Reply with quote

Well as an analyst I of course have to consider the benefits to the business of sacking me. Rolling Eyes
Unfortunately run-off is so specialised, building anything without the help of one of the countries handful of experts (me) would be prohibitively expensive. Also since the requirements of the clients change with the frequencey and unpredicability of the weather an in-house developer and solution is the only viable way forward.
The above isn't sarcasm btw, several times over the years it's been seriously considered and rejected.
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Rogerborg
nimbA



Joined: 26 Oct 2010
Karma :

PostPosted: 19:39 - 19 Jul 2015    Post subject: Reply with quote

I holla, I picture you insurance guys as falling into a black hole of speciality, occasionally spunking off nummy nuggets of useful information as you spiral towards the event horizon where nobody else can understand a word you say.
____________________
Biking is 1/20th as dangerous as horse riding.
GONE: HN125-8, LF-250B, GPz 305, GPZ 500S, Burgman 400 // RIDING: F650GS (800 twin), Royal Enfield Bullet Electra 500 AVL, Ninja 250R because racebike
 Back to top
View user's profile Send private message You must be logged in to rate posts

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 21:07 - 19 Jul 2015    Post subject: Reply with quote

Rogerborg wrote:
...where nobody else can understand a word you say.

You mean when we talk about calculating out reinsurer liabilities across replacement cessions on a quota share protection and allocating to lead interpool participants? Or the really complicated stuff?
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Rogerborg
nimbA



Joined: 26 Oct 2010
Karma :

PostPosted: 22:02 - 19 Jul 2015    Post subject: Reply with quote

Andy_Pagin wrote:
You mean when we talk about calculating out reinsurer liabilities across replacement cessions on a quota share protection and allocating to lead interpool participants? Or the really complicated stuff?

https://rogerborg.mooo.com/is-the-answer-star-wars.jpg
____________________
Biking is 1/20th as dangerous as horse riding.
GONE: HN125-8, LF-250B, GPz 305, GPZ 500S, Burgman 400 // RIDING: F650GS (800 twin), Royal Enfield Bullet Electra 500 AVL, Ninja 250R because racebike
 Back to top
View user's profile Send private message You must be logged in to rate posts

el_oso
World Chat Champion



Joined: 17 May 2008
Karma :

PostPosted: 10:07 - 20 Jul 2015    Post subject: Reply with quote

good nips
____________________
Duke 390
Previous: '05 XR125L | '96 XJ600S Diversion |'05 Suzuki GSXR1000 | '05 Honda CBR125-R | '97 YZF 600R Thundercat | '11 Honda CBR250
Car: Jeep Wrangler 4.0L
 Back to top
View user's profile Send private message You must be logged in to rate posts

chrisw
World Chat Champion



Joined: 24 Apr 2006
Karma :

PostPosted: 13:11 - 20 Jul 2015    Post subject: Reply with quote

Taught2BCautious wrote:
For your scenario, you could perhaps consider using Mongo to store all of the policy documents, and a SQL database to store policyholder data, and cross reference which documents apply to which policy.


This is confusing - I'm assuming you know Mongo and that when it refers to 'documents' it's not actual documents (Word docs etc..)? Rather it's just it's smallest data fragment (i.e it doesn't deal with rows and columns).

The question when it comes to SQL vs NoSQL is really is the data structured/relational and if it is do you use the database engine to assist in the querying of the data? If the answer to both is yes then a traditional RDBMS is probably going to provide a better solution.

If the answer to either is no then you may be able to use a NoSQL type of product (Mongo being just one of them). Certainly the latter - if you're interrogating datasets only within the application (e.g performing very broad selects) then because Mongo documents are JSONesq already it's pretty simple to enumerate through a query result.

In truth the only person that can really answer is.....you. You know the use case, the data model and the initial size/growth expectations.
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 03:13 - 21 Jul 2015    Post subject: Reply with quote

The only real benefit that document databases have over relation is the schema-less design and the ability to scale across multiple machines. Unless you're scaling to the extent of exceeding what a single machine can do i'd advise going with a relational database.

We use Marklogic for our main data source and we are experiencing a world of pain. Our needs have changed over time and the system design is needing to pull lots of data from multiple documents. This is causing unreliability due to us having to run loads of clusters, costing us a fortune (£30k per week....) and now all our teams are having to write their own service layers to take load of the database.

Relational databases are amazing in how fast they can be, along with how easy they are to understand. Migrations can be a pain though.

Document databases are getting a lot of good press as they solve some issues relational databases have always struggled with. This does not however make them a replacement. Unless you see something on the horizon that you can't do with relational, go relational.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 11 years, 46 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.09 Sec - Server Load: 0.22 - MySQL Queries: 13 - Page Size: 104.77 Kb