Commit Graph

68 Commits

Author SHA1 Message Date
Mike Bayer c2cbdb2ce0 r5281 knocked down callcounts in 2.5.. 2008-11-17 02:02:42 +00:00
Mike Bayer 0cff22720b - Removed the 'properties' attribute of the
Connection object, Connection.info should be used.
- Method consoliation in Connection, ExecutionContext
2008-11-09 19:32:25 +00:00
Mike Bayer 1901519fa7 removed setup_instance() from the public API
of ClassManager, and made it a private method on
_ClassInstrumentationAdapter.  ClassManager's approach
handles the default task with fewer function calls which chops off
a few hundred calls from the pertinent profile tests.
2008-11-08 21:00:15 +00:00
Mike Bayer da59591a9c - zoomark adjustments
- changelog has separate category for 'features'
2008-11-07 17:45:19 +00:00
Mike Bayer 17b758faed avoid some often unnecessary method calls. i think we might have squeezed all we're going to squeeze out of compiler at this point. 2008-11-07 17:08:23 +00:00
Mike Bayer 9f894d2f26 - Dialects can now generate label names of adjustable length.
Pass in the argument "label_length=<value>" to create_engine()
to adjust how many characters max will be present in dynamically
generated column labels, i.e. "somecolumn AS somelabel".  Any
value less than 6 will result in a label of minimal size,
consiting of an underscore and a numeric counter.
The compiler uses the value of dialect.max_identifier_length
as a default. [ticket:1211]
- removed ANON_NAME regular expression, using string patterns now
- _generated_label() unicode subclass is used to indicate generated names
which are subject to truncation
2008-11-05 20:50:48 +00:00
Mike Bayer c38e5d043f - Simplified the check for ResultProxy "autoclose without results"
to be based solely on presence of cursor.description.
All the regexp-based guessing about statements returning rows
has been removed [ticket:1212].
2008-11-04 17:28:26 +00:00
Mike Bayer 334d5118bb update call count 2008-11-03 01:47:30 +00:00
Mike Bayer 76e8175971 - moved _FigureVisitName into visitiors.VisitorType, added Visitor base class to reduce dependencies
- implemented _generative decorator for select/update/insert/delete constructs
- other minutiae
2008-10-25 19:44:21 +00:00
Mike Bayer 25e5157785 call drop # 2 2008-10-25 18:24:13 +00:00
Mike Bayer 9160ce0d45 call drop 2008-10-25 18:23:46 +00:00
Mike Bayer 4ba4964425 2.4 callcounts of course go up for no apparent reason 2008-10-23 02:39:52 +00:00
Mike Bayer 1ccdfb5172 call count pinata party 2008-10-23 02:22:57 +00:00
Michael Trier 9dd05715de Corrected profiling expected call count down to 42 for the test_insert test. 2008-10-20 16:24:30 +00:00
Mike Bayer abcb5605f9 - Improved weakref identity map memory management to no longer
require mutexing, resurrects garbage collected instance
on a lazy basis for an InstanceState with pending changes.
2008-10-19 19:26:48 +00:00
Mike Bayer 6ac91ccc8c tiny tiny speed improvements.... 2008-10-18 19:39:34 +00:00
Mike Bayer edec6707ec call count still goes to 131 for 2.4 despite the removal of ~12 lines from visit_select() 2008-10-18 18:25:21 +00:00
Mike Bayer a20222fc22 - 0.5.0rc3, doh
- The internal notion of an "OID" or "ROWID" column has been
removed.  It's basically not used by any dialect, and the
possibility of its usage with psycopg2's cursor.lastrowid
is basically gone now that INSERT..RETURNING is available.

- Removed "default_order_by()" method on all FromClause
objects.
- profile/compile/select test is 8 function calls over on buildbot 2.4 for some reason, will adjust after checking
the results of this commit
2008-10-18 18:14:06 +00:00
Mike Bayer 282313ced6 adjust counts for 2.4 based on buildbot observation, remove 2.3 counts 2008-08-13 22:51:27 +00:00
Mike Bayer cd7678a965 - with 2.3 support dropped,
all usage of thread.get_ident() is removed, and replaced
with threading.local() usage.  this allows potentially
faster and safer thread local access.
2008-08-13 22:41:17 +00:00
Mike Bayer 0cb0dc0694 zoomarks have gone up as a result of r4936, possibly others. not clear why 2008-07-18 22:28:16 +00:00
Jason Kirtland 6917ffb9bd And thus ends support for Python 2.3. 2008-07-15 18:21:24 +00:00
Mike Bayer 5ccfa64294 - bumped PG's call count on test #6 to 1193 for py2.4; this is due to non-pool-threadlocal nature adding some checkout overhead 2008-05-27 03:08:35 +00:00
Mike Bayer ad23f3b068 - zoomark/zoomark_orm seem to work with pool_threadlocal turned off, [ticket:1050] becomes WORKSFORME
- fixed probably errenous unique=True checkin on unitofwork.py
2008-05-19 22:35:32 +00:00
Mike Bayer dbda75ec5f pool_threadlocal is off by default [ticket:1049] 2008-05-19 15:46:32 +00:00
Mike Bayer 01b952c336 added ORM version of zoomark, python 2.5 only for starters 2008-05-18 16:19:21 +00:00
Jason Kirtland 78dc35822e - Adjusted zoomoark
- Added test/orm/defaults.  Ambitiously uses ansi triggers.
2008-05-14 19:55:35 +00:00
Mike Bayer 6840fc6bb6 - more portable tests for eager/inheritance joins
- bumped 2.4 call count for profile test_select
- don't need initialize_properties() during reentrant compile() call (for now)
2008-05-09 19:20:49 +00:00
Mike Bayer 4a6afd469f r4695 merged to trunk; trunk now becomes 0.5.
0.4 development continues at /sqlalchemy/branches/rel_0_4
2008-05-09 16:34:10 +00:00
Jason Kirtland 9dd01e52e2 - microcleanup 2008-04-03 17:32:22 +00:00
Jason Kirtland d78f39d005 - Experimental: prefer cProfile over hotspot for 2.5+
- The latest skirmish in the battle against zoomark and sanity:
  3rd party code is factored out in the function call count canary tests
2008-04-03 17:08:08 +00:00
Jason Kirtland 0359a6a13d - Re-tuned call counts for 2.3 through 2.5. 2008-04-02 18:13:53 +00:00
Mike Bayer fef66e5c5b doh 2008-04-02 16:15:57 +00:00
Mike Bayer 52b69d0e25 reduced 2.4 callcounts... 2008-04-02 15:22:33 +00:00
Mike Bayer ac7d092ef0 slight function call reduction 2008-04-02 15:07:06 +00:00
Mike Bayer c08c6c2185 continue attempting to get proper count for pybot on 2.5, ensure order_by for oracle query 2008-04-02 02:42:29 +00:00
Mike Bayer b041ff1e62 seems like the recent itertools add to select()._get_display_froms() adds overhead in 2.4? not sure why 2008-04-01 18:08:42 +00:00
Mike Bayer 7ae89c28f0 fix up some unit tests 2008-04-01 17:46:36 +00:00
Mike Bayer c0b5a0446b - updated the naming scheme of the base test classes in test/testlib/testing.py;
tests extend from either TestBase or ORMTest, using additional mixins for
special assertion methods as needed
2008-02-11 00:28:39 +00:00
Jason Kirtland 47a8b6d10d - Migrated zoomark to profiling.function_call_count(), tightened up the numbers. Is there variation by platform too? Buildbots will tell... 2008-01-22 22:43:04 +00:00
Jason Kirtland 7e0f72cde4 rein in r3840 find and replace rampage 2008-01-22 21:32:51 +00:00
Jason Kirtland b3cc2f7e0c - 2.3 fixup part three: 100% on postgres, mysql 2008-01-22 21:08:21 +00:00
Jason Kirtland 412c80dd6c - 2.3 fixup, part two: 100% passing for sqlite
- added 2.4-style binops to util.Set on 2.3
  - OrderedSets pickle on 2.3
  - more lib/sqlalchemy set vs Set corrections
  - fixed InstrumentedSet.discard for 2.3
  - set, sorted compatibility for test suite
- added testing.fails_if decorator
2008-01-21 23:19:39 +00:00
Jason Kirtland 17d3c8764e - testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase
- testing.db has the configured db
- Fixed up the perf/* scripts
2008-01-12 22:03:42 +00:00
Jason Kirtland 8128a6378a - Removed @testing.supported. Dialects in development or maintained outside
the tree can now run the full suite of tests out of the box.
- Migrated most @supported to @fails_on, @fails_on_everything_but, or (last
  resort) @unsupported.  @fails_on revealed a slew of bogus test skippage,
  which was corrected.
- Added @fails_on_everything_but.  Yes, the first usage *was*
  "fails_on_everything_but('postgres')".  How did you guess!
- Migrated @supported in dialect/* to the new test-class attribute __only_on__.
- Test classes can also have __unsupported_on__ and __excluded_on__.
2007-12-13 09:59:14 +00:00
Mike Bayer 4d7f279d14 fixed unicode-ness for Unicode values 2007-11-28 22:09:57 +00:00
Mike Bayer e83eefafbb bump for py2.4 2007-11-25 04:00:44 +00:00
Mike Bayer cf18eecd70 - named_with_column becomes an attribute
- cleanup within compiler visit_select(), column labeling
- is_select() removed from dialects, replaced with returns_rows_text(), returns_rows_compiled()
- should_autocommit() removed from dialects, replaced with should_autocommit_text() and
should_autocommit_compiled()
- typemap and column_labels collections removed from Compiler, replaced with single "result_map" collection.
- ResultProxy uses more succinct logic in combination with result_map to target columns
2007-11-25 03:28:49 +00:00
Mike Bayer 3f93103a5e - all kinds of cleanup, tiny-to-slightly-significant speed improvements 2007-11-24 00:55:39 +00:00
Mike Bayer 95807fd287 some wide zoomark ranges... 2007-11-18 07:23:00 +00:00