A database is any organized collection of data organized to provide efficient retrieval.
0
votes
0answers
7 views
Can I get some feedback on my simple database design? [migrated]
Ok, so I am carrying out a rather simple task as part of a job requiretement. Here is the task in a nutshell:
Design a form for creating ad for selling car
Form has 2 have:
2 drop downs:
Car make
...
6
votes
1answer
56 views
-3
votes
0answers
29 views
import text file into mysql database using c# [on hold]
I'm using c# and I have my table as a text file, I want to import this table into mysql database, I upload the path as textBox_path.text and I use this code :
...
2
votes
1answer
42 views
Throwing exceptions in a database wrapper
I hope the extension methods ThrowArgumentNullExceptionIfNullOrEmpty and ThrowNullReferenceExceptionIfNullOrEmpty are ...
0
votes
0answers
15 views
Perform SELECT INTO Statement and add Primary Key afterwards
How can I improve this TSQL Statement in terms of performance?
...
4
votes
2answers
110 views
Library Management System
I have created a Library Management system. Can anyone please look at if see if there's any bad practices or if anything could be done better?
Main.cpp
...
2
votes
1answer
38 views
Database module for node.js
This will get quite clumsy if I continue down the road with this design, so I'm asking you, enlightened ones, is there a way to make this prettier and easier to understand? Primarily the ...
0
votes
0answers
2 views
Database : what design to point on two possibilities? [migrated]
I am designing a datamodel for a new project.
One of the requirements specifies that some objects can point either a person or a company.
What is the smartest way to achieve that?
I have thought ...
1
vote
0answers
32 views
Checking subscriber download limit
I have a domain model which determines whether a user has any access left.
This class is loaded from the database on each web request.
The setter on the property that determines the access limit ...
2
votes
0answers
39 views
Optimizing Cassandra Schema to avoid deleting data
I come from MySQL type of mind frame but have worked with MongoDB and ElasticSearch type of NoSQL.
I'm using a small use case of Cassandra to able to scale a playlist format for users.
In C* Summit ...
3
votes
1answer
54 views
Checking referential integrity of a database schema
I am using PHP PDOs to parse the results I am receiving from MySQL queries against a database. I am now running into an issue with running out of allocated memory. Are there any suggestions on ...
3
votes
2answers
341 views
Importing MySQL Database to a .txt File
We just finished working on a Database project in Java Netbeans. We added the feature Import which will import the database record of one user to a text file.
...
6
votes
2answers
77 views
Database access concept
I've got a small tomcat web application that's used to receive customer data from an iPad app. After receiving those information they will be saved on a local MySQL database and then sent to an SAP ...
2
votes
2answers
45 views
Query using cross join or inner join
Please consider the following three tables that I am playing with in the image below:
I want to come up with a SQL Query which shows first_name, last_name, and the total amount of all orders for ...
0
votes
0answers
42 views
CRUD (database layer) for F# with TypeProviders
I am a newbie in F# and I am thinking about use F# in my next project. The project will work the database and I need to store and retrieve instances of objects in the Db.
Could you please check my ...
1
vote
1answer
67 views
Performance shifting for SQL Database and Linq memory grouping
I am messing around with shifting between stored procedures and business layer EF getting data rapidly then processing in memory.
This works and on a static data range of 3 months I get execution ...
1
vote
0answers
10 views
1
vote
0answers
57 views
Create and access database connection
I'm working on an MVC project and I'm writing the code for get access to the database connection.
I have two files:
The first (PdodbLib.class.php) extends PDO:
...
5
votes
3answers
104 views
SQL database design for ecommerce
I need to create a database which stores details products, Manufactures,Suppliers. So initially I divided Products into categories and subcategories.
These are the tables I created.
...
2
votes
1answer
57 views
Checking for duplicate values in database with Python
I'm working on a Python application where I read and extract data from an HTML file. The data is stored in a list, and the number of items in a list is, on average, 50,000+.
The items from the list ...
0
votes
1answer
64 views
Queue like system to check existence of email
I have a table in my database containing email and email_state amongst other values.
Email is the email of the contact, and ...
-1
votes
1answer
63 views
Reducing database access time and connection count [closed]
I have 2 connections. How can I reduce this to one connection?
...
0
votes
0answers
11 views
4
votes
1answer
111 views
Lazy Load for multiple entities at a time
We have a system with a non standard database solution. All trips to the DB are rather expensive. We cannot use entity framework.
Currently our lazy loading is on an entity by entity basis. So if I ...
15
votes
1answer
210 views
Modeling a Mage character from nWoD, using Django
Goal
Design a representation of a mage character from the World of Darkness RPG, as well their associated spells.
Here is a visual representation of the schema. You can see it more closely ...
3
votes
2answers
119 views
Create SQLite backups
I have this script for creating SQLite backups, and I was wondering whether you'd have any suggestions on how to improve this. I was thinking that maybe it should create the backup ...
3
votes
0answers
54 views
Rails models for Users, Offers, Comments, Documents, and Reviews
I want to simplify my Rails models, current looks like this:
...
2
votes
0answers
21 views
Auto-expire key/value database (with different key types) in Haskell using acid-state
I am making a key-value database using acid-state. It has three similar "pools", one for cookie records, one for email verification of new accounts, and the last for resetting passwords.
There are ...
7
votes
1answer
180 views
Database abstraction layer for PHP web application
I'm working on a PHP based web application.
While building the UserStorage class, (which acts as a storage source for user data, and implements the ...
2
votes
1answer
191 views
Optimizing for data import in Neo4j using py2neo
Here is my code for importing from a .csv to a neo4j graph using py2neo and cypher statements. I've noticed that it slows down significantly the bigger the graph gets. It takes several seconds just to ...
2
votes
1answer
42 views
Creating keyword records in a database
This code is part of a data model used to create keyword records in a database.
...
2
votes
0answers
60 views
How common is the use of closure in Lisp?
I'm writing a little tool for mangling MP3 collections and, as a challenge, I decided to write in in Hy, a dialect of Python that uses Lisp syntax. Like every good developer, I wrote out my list of ...
1
vote
0answers
18 views
Bitcoin, detecting deposits to the node.js server
I'm trying to detect deposits that user will made. I explained it with comment lines in below.
Can you say are there any flaw in it?
...
7
votes
1answer
87 views
Summing the prices from Transaction files
I need to cut down the run time of this query. Currently it's taking 45 minutes. Is there something I can change in the table or the query to allow this to run faster?
...
1
vote
0answers
54 views
2
votes
2answers
206 views
Small PHP DAO app
I'm creating a small app and decided to write my own DAO for learning, etc.
At the moment it's in one big file, which I really don't like. Could you give me some tips on how:
you would separate ...
3
votes
3answers
101 views
Cancelling an order with a side-effect of logging the operation
I have a data access layer method to cancel an order. This operation should have an associated "operation history" entry.
My first (naïve) implementation looks like this:
...
5
votes
1answer
66 views
TrackDAO: what can be improved?
In this specific situation there is a table with trackdata and a form to add rows. For the sake of clarity I won't include the view-related code here. The added rows are added to a LinkedList when ...
1
vote
0answers
118 views
Django Model field naming convention for lookup tables
I'm currently in the process of refactoring a Django app to use Django REST Framework. Within the existing code there are 15 models for lookup tables. The structure of each model is as follows (using ...
0
votes
2answers
78 views
1
vote
2answers
46 views
Looking up the name and event for a ticket
This code is from my Kohana project. How can I make it more beautiful? Should I use try-catch instead? How could I avoid writing exit() twice?
...
4
votes
1answer
262 views
Dapper helper service
I've written a very light wrapper around Dapper to help with unit testing and streamlining the Dapper commands I need.
Execute() is a method created to remove the ...
0
votes
2answers
913 views
Connecting to a MySQL database with C#
Can anyone help me with checking this code? It is for connecting to a database. The method getFromDatabase is to take values from the database and put it to a ...
2
votes
1answer
146 views
PDO PHP DB Class
I've been building a PDO PHP DB class and I just wonder if someone could give me some feedback (regarding security, how the code is written and how I can optimize it).
This class is not finished ...
3
votes
2answers
203 views
Database assignment with MySQL and Swing
I have completed this assignment from Stanford CS108 on MySQL and Swing (it's part B). It would be wonderful if someone could point out my weak spots in the code and overall design.
I have uploaded ...
0
votes
1answer
152 views
Data Access Layer and Business Objects
This is my first cut at separating the data access layer out of my very old spaghetti codebase.
I have tried to keep this as simple as possible, it is for a small project, so I am not really ...
1
vote
2answers
852 views
School Library Management System
I require feedback on the plethora of bad practices that are definitely existing in the following code:
...
5
votes
3answers
157 views
0
votes
1answer
38 views
1
vote
0answers
23 views
Structuring my MongoDB application documents
I'm just starting out on an application and I've heard some good things about MongoDB so I thought I'd give it a crack in this new project to see how well it works.
Please bear in mind that prior to ...