Comments (4)
Satisfies #27 issue:
If database structure contains loop it is possible for application to have one too.
It cannot happen.
from qubic.
Avoid loading of same object more than once. Check how global objects list can be used to achieve it. Maybe it should be used in other CRUD methods too?
Sample loop in database structure:
DROP DATABASE EMPLOYEES;
CREATE DATABASE EMPLOYEES;
USE EMPLOYEES;
CREATE TABLE COMPANY (
ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
COMPANYNAME VARCHAR(30),
EMPLOYEE INT);
CREATE TABLE EMPLOYEE (
ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
FIRSTNAME VARCHAR(10),
LASTNAME VARCHAR(20),
BIRTHDAY DATE,
GENDER VARCHAR(6),
COMPANY INT,
HIREDATE TIMESTAMP,
SALARY DOUBLE,
CHILDREN INT,
FOREIGN KEY(COMPANY) REFERENCES COMPANY(ID));
ALTER TABLE COMPANY ADD FOREIGN KEY (EMPLOYEE) REFERENCES EMPLOYEE(ID);
COMMIT;
from qubic.
Load objects from database or cache (pointer to currently synchronized object from global list)? Check how Hibernate handles it.
from qubic.
Objects are loaded always from database.
from qubic.
Related Issues (20)
- Type alignment HOT 1
- Code refactoring
- Splitted log files HOT 1
- Properties load
- Direct queries HOT 1
- Creating objects using reflection HOT 1
- Compilation process
- Split classes into subdirectories
- Primary keys for tables
- Registration of Qt meta types
- Tables with complex keys HOT 1
- Macros as mapping adnotations HOT 1
- Translation HOT 1
- Conditional search HOT 2
- Avoid memory leaks HOT 1
- Avoid infinite loops HOT 1
- Advanced query functions HOT 1
- Final phase
- Thesis HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qubic.