News for hackers. Stuff that matters.
Re:Anko SQLite, a library to simplify working with SQLite on... by bluedino on Thursday September 21, 2017 @10:23AM (#15303685)
One problem we've ran into with it, is tables with > 400 columns.
Re:Anko SQLite, a library to simplify working with SQLite on... by striking on Thursday September 21, 2017 @10:53AM (#15304013)
Sounds to me like you're using RDBMS wrong.
Re:Anko SQLite, a library to simplify working with SQLite on... by tyfon on Thursday September 21, 2017 @11:21AM (#15304332)
Not that it necessarily relates to SQLlite, but I've seen this _many many_ times in real world databases in the banking industry.

Personally I don't like it and I am luckily not in IT, but as an analyst I have seen many weird database structures. One can only imagine the business requirements that gave birth to some of them.

To quote a solutions architect to the head of marketing in a previous job: "You asked for a monster, you got a monster."

Re:Anko SQLite, a library to simplify working with SQLite on... by danso on Thursday September 21, 2017 @10:54AM (#15304022)
Is there something about SQLite's architecture that would make such a schema less problematic in MySQL/PgSQL/etc?
Re:Anko SQLite, a library to simplify working with SQLite on... by revelation on Thursday September 21, 2017 @10:27AM (#15303733)
Well, don't do that, normalize your scheme.
Re:Anko SQLite, a library to simplify working with SQLite on... by phn on Thursday September 21, 2017 @12:03PM (#15304814)
When your application grows, eventually you need to de-normalize data if you want to keep having reasonable performance for some operations.

You can reach a point where it's not feasible to have everything done by joins.

EDIT: I mean in relational DBs in general. In this case, 400+ columns probably mean SQLite may not be the engine to use, regardless of schema :)

Re:Anko SQLite, a library to simplify working with SQLite on... by Diederich on Thursday September 21, 2017 @10:26AM (#15303722)
Can you expand on that?
Re:Anko SQLite, a library to simplify working with SQLite on... by andrewguenther on Thursday September 21, 2017 @11:34AM (#15304472)
Isn't 400 columns expanded enough?
Re:Anko SQLite, a library to simplify working with SQLite on... by bluedino on Thursday September 21, 2017 @01:03PM (#15305411)
It's simply creating a local cache of a remote database that runs on Oracle.
Re:Anko SQLite, a library to simplify working with SQLite on... by Diederich on Friday September 22, 2017 @10:47AM (#15312641)
I mean...what kinds of problems did you run into? Thanks.